1. Go to this page and download the library: Download lorenzo/cakephp-fixturize library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lorenzo / cakephp-fixturize example snippets
CakePlugin::load('Fixturize');
App::uses('SQLTestFixture', 'Fixturize.TestSuite/Fixture');
/**
* CategoryFixture
*
*/
class CategoryFixture extends SQLTestFixture {
public $plugin = 'MyPlugin'; // Can be ommited if the sql file is locate in app
public $file = 'overriding_file_name.sql'; // By default it would use categories.sql
}