Testing cakephp/migrations

Hi, what do i need to configure so i can run the cakephp/migrations tests?

I cloned the cakephp/migrations, run composer install, then:

$ phpunit -v --debug        
PHP Notice:  Undefined index: className in /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php on line 116
PHP Stack trace:
PHP   1. {main}() /home/alysson/.composer/vendor/phpunit/phpunit/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /home/alysson/.composer/vendor/phpunit/phpunit/phpunit:36
PHP   3. PHPUnit_TextUI_Command->run() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105
PHP   4. PHPUnit_TextUI_Command->handleArguments() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:115
PHP   5. PHPUnit_TextUI_Command->handleBootstrap() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:579
PHP   6. PHPUnit_Util_Fileloader::checkAndLoad() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:751
PHP   7. PHPUnit_Util_Fileloader::load() /home/alysson/.composer/vendor/phpunit/phpunit/src/Util/Fileloader.php:42
PHP   8. include_once() /home/alysson/.composer/vendor/phpunit/phpunit/src/Util/Fileloader.php:58
PHP   9. Cake\Datasource\ConnectionManager::config() /home/alysson/ws/cakephp/migrations/tests/bootstrap.php:70
PHP  10. Cake\Datasource\ConnectionManager::config() /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php:79
PHP  11. Cake\Datasource\ConnectionManager::parseDsn() /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php:105

Notice: Undefined index: className in /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php on line 116

Call Stack:
    0.0001     236208   1. {main}() /home/alysson/.composer/vendor/phpunit/phpunit/phpunit:0
    0.0040     645672   2. PHPUnit_TextUI_Command::main() /home/alysson/.composer/vendor/phpunit/phpunit/phpunit:36
    0.0040     646304   3. PHPUnit_TextUI_Command->run() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105
    0.0040     648968   4. PHPUnit_TextUI_Command->handleArguments() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:115
    0.0087    1178752   5. PHPUnit_TextUI_Command->handleBootstrap() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:579
    0.0088    1187280   6. PHPUnit_Util_Fileloader::checkAndLoad() /home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:751
    0.0088    1187464   7. PHPUnit_Util_Fileloader::load() /home/alysson/.composer/vendor/phpunit/phpunit/src/Util/Fileloader.php:42
    0.0090    1208504   8. include_once('/home/alysson/ws/cakephp/migrations/tests/bootstrap.php') /home/alysson/.composer/vendor/phpunit/phpunit/src/Util/Fileloader.php:58
    0.0200    2712456   9. Cake\Datasource\ConnectionManager::config() /home/alysson/ws/cakephp/migrations/tests/bootstrap.php:70
    0.0200    2712848  10. Cake\Datasource\ConnectionManager::config() /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php:79
    0.0200    2712848  11. Cake\Datasource\ConnectionManager::parseDsn() /home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php:105

PHPUnit 5.3.2 by Sebastian Bergmann and contributors.

Runtime:       PHP 5.6.21 with Xdebug 2.3.3
Configuration: /home/alysson/ws/cakephp/migrations/phpunit.xml.dist


Starting test 'Migrations\Test\Command\DumpTest::testExecuteNoTables'.
.
Starting test 'Migrations\Test\Command\DumpTest::testExecuteTables'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecute'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteAll'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteTarget'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteTargetWithExclude'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteTargetWithOnly'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteWithVersionAsArgument'.
.
Starting test 'Migrations\Test\Command\MarkMigratedTest::testExecuteInvalidUseOfOnlyAndExclude'.
.
Starting test 'Migrations\Test\Command\SeedTest::testExecute'.
.
Starting test 'Migrations\Test\Command\SeedTest::testExecuteCustomParams'.
.
Starting test 'Migrations\Test\Command\SeedTest::testExecuteWrongCustomParams'.
.
Starting test 'Migrations\Test\Command\StatusTest::testExecute'.
.
Starting test 'Migrations\Test\Command\StatusTest::testExecuteJson'.
.
Starting test 'Migrations\Test\Command\StatusTest::testExecuteWithMigrated'.
.
Starting test 'Migrations\Test\Command\StatusTest::testExecuteWithInconsistency'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetAdapterName with data set #0 ('mysql', Mock_Mysql_6ec4d732 Object (...))'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetAdapterName with data set #1 ('pgsql', Mock_Postgres_a3b7f530 Object (...))'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetAdapterName with data set #2 ('sqlite', Mock_Sqlite_d129eaea Object (...))'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetConfig'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testCacheMetadataDisabled'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetConfigWithPlugin'.
.
Starting test 'Migrations\Test\ConfigurationTraitTest::testGetConfigWithConnectionName'.
.
Starting test 'Migrations\Test\MigrationsTest::testStatus'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateAndRollback'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedAll'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedAllAsVersion'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedTarget'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedTargetError'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedTargetExclude'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedTargetOnly'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedTargetExcludeOnly'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedVersion'.
.
Starting test 'Migrations\Test\MigrationsTest::testOverrideOptions'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateDateOption'.
.
Starting test 'Migrations\Test\MigrationsTest::testSeed'.
.
Starting test 'Migrations\Test\MigrationsTest::testSeedOneSeeder'.
.
Starting test 'Migrations\Test\MigrationsTest::testSeedWrongSeed'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateSnapshots with data set #0 ('/home/alysson/ws/cakephp/...ation/', array(array('test_not_empty_snapshot', 20150912015601), array('test_auto_id_disabled_snapshot', 20150912015602), array('test_not_empty_snapshot56', 20150912015611), array('test_auto_id_disabled_snapshot56', 20150912015612), array('testCreatePrimaryKey', 20150912015603), array('testCreatePrimaryKeyUuid', 20150912015604)))'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateSnapshots with data set #1 ('/home/alysson/ws/cakephp/...pgsql/', array(array('test_not_empty_snapshot_pgsql', 20150912015606), array('test_auto_id_disabled_snapshot_pgsql', 20150912015607)))'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateSnapshots with data set #2 ('/home/alysson/ws/cakephp/...qlite/', array(array('test_not_empty_snapshot_sqlite', 20150912015609), array('test_auto_id_disabled_snapshot_sqlite', 20150912015610)))'.
.
Starting test 'Migrations\Test\MigrationsTest::testMigrateErrors'.
.
Starting test 'Migrations\Test\MigrationsTest::testRollbackErrors'.
.
Starting test 'Migrations\Test\MigrationsTest::testMarkMigratedErrors'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsSubcommands'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsOptionsCreate'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsOptionsMarkMigrated'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsOptionsMigrate'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsOptionsRollback'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\CommandTaskTest::testMigrationsOptionsStatus'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationDiffTaskTest::testHistoryNotInSync'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationDiffTaskTest::testEmptyHistoryNoMigrations'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationDiffTaskTest::testEmptyHistoryNoMigrationsError'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationDiffTaskTest::testBakingDiff'.
S
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationSnapshotTaskTest::testGetTableNames'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationSnapshotTaskTest::testNotEmptySnapshot'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationSnapshotTaskTest::testAutoIdDisabledSnapshot'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationSnapshotTaskTest::testPluginBlog'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationSnapshotTaskTest::testFetchTableNames'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationTaskTest::testNoContents'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationTaskTest::testCreate'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationTaskTest::testAddPrimaryKeyToExistingTable'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\MigrationTaskTest::testDetectAction'.
.
Starting test 'Migrations\Test\TestCase\Shell\Task\SeedTaskTest::testBasicBaking'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testParseFields'.
. 65 / 80 ( 81%)

Starting test 'Migrations\Test\Util\ColumnParserTest::testParseIndexes'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testParsePrimaryKey'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testValidArguments'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testGetType'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testGetTypeAndLength'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testGetLength'.
.
Starting test 'Migrations\Test\Util\ColumnParserTest::testGetIndexName'.
.
Starting test 'Migrations\Test\MigrationHelperTest::testTableMethod'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testIndexMethod'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testColumnMethod'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testColumns'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testColumn'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testValue'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testAttributes'.
E
Starting test 'Migrations\Test\MigrationHelperTest::testStringifyList'.
E

Time: 723 ms, Memory: 25.25MB

There were 8 errors:

1) Migrations\Test\MigrationHelperTest::testTableMethod
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

2) Migrations\Test\MigrationHelperTest::testIndexMethod
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

3) Migrations\Test\MigrationHelperTest::testColumnMethod
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

4) Migrations\Test\MigrationHelperTest::testColumns
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

5) Migrations\Test\MigrationHelperTest::testColumn
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

6) Migrations\Test\MigrationHelperTest::testValue
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

7) Migrations\Test\MigrationHelperTest::testAttributes
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

8) Migrations\Test\MigrationHelperTest::testStringifyList
dir(/tmp/systemd-private-fae76f3b3ab24f88ba38b678066bbbed-colord.service-DtJfTw/): failed to open dir: Permission denied

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:306
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php:284
/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/Cache/Cache.php:446
/home/alysson/ws/cakephp/migrations/tests/TestCase/View/Helper/MigrationHelperTest.php:45
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

--

There was 1 skipped test:

1) Migrations\Test\TestCase\Shell\Task\MigrationDiffTaskTest::testBakingDiff

/home/alysson/ws/cakephp/migrations/vendor/cakephp/cakephp/src/TestSuite/TestCase.php:83
/home/alysson/ws/cakephp/migrations/tests/TestCase/Shell/Task/MigrationDiffTaskTest.php:151
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:153
/home/alysson/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:105

FAILURES!
Tests: 80, Assertions: 292, Errors: 8, Skipped: 1.

Follow the setup steps that can be found in the travis.yaml file in the repository