protected function processFixture($fixture)
    {
        $tableName = basename($fixture, '.php');
        $records = include $fixture;

        if (!is_array($records)) {
            throw new Exceptions\InvalidFixtureDataException(
                "Invalid fixture: $fixture, please ensure this file returns an array of data.",
                1
            );

        }

        $this->fixtures[$tableName] = $this->driver->buildRecords($tableName, $records);
    }
protected function processFixture($fixture)
    {
        $tableName = basename($fixture, '.php');
        $records = include $fixture;

        if (!is_array($records)) {
            throw new Exceptions\InvalidFixtureDataException(
                "Invalid fixture: $fixture, please ensure this file returns an array of data.",
                1
            );

        }

        $this->fixtures[$tableName] = $this->driver->buildRecords($tableName, $records);
    }
protected function processFixture ( $ fixture ) { $ tableName = basename ( $ fixture , '.php' ) ; $ records = include $ fixture ; if ( ! is_array ( $ records ) ) { throw new Exceptions \ InvalidFixtureDataException ( "Invalid fixture: $fixture, please ensure this file returns an array of data." , 1 ) ; } $ this -> fixtures [ $ tableName ] = $ this -> driver -> buildRecords ( $ tableName , $ records ) ; }
Process a fixture, adding its data into the database.

@param  string $fixture
@return void
Process a fixture adding its data into the database .