Skip to content

Commit

Permalink
Merge pull request #49 from howyi/support-symfony5
Browse files Browse the repository at this point in the history
Support symfony5
  • Loading branch information
howyi authored Jan 16, 2020
2 parents e9f3a85 + 6ab4c5f commit 096f711
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 13 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
"require-dev": {
"phpunit/phpunit": "^6.2",
"symfony/var-dumper": "^3.3",
"php-coveralls/php-coveralls": "^2.1",
"phpspec/prophecy": "^1.7",
"phpstan/phpstan": "^0.8.0",
"phpstan/phpstan": "^0.12.5",
"squizlabs/php_codesniffer": "^3.0",
"laminaria/conv-test-suite": "dev-master"
"howyi/conv-test-suite": "dev-master",
"php-coveralls/php-coveralls": "^2.2"
},
"bin": ["bin/conv"]
}
2 changes: 2 additions & 0 deletions src/Command/DiffDb2DbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);

$this->displayAlterMigration($alterMigrations, $operator);

return 0;
}
}
2 changes: 2 additions & 0 deletions src/Command/DiffSchema2DbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);

$this->displayAlterMigration($alterMigrations, $operator);

return 0;
}
}
2 changes: 2 additions & 0 deletions src/Command/ReflectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
(string) $input->getOption('dir'),
$this->getOperator($input, $output)
);

return 0;
}
}
2 changes: 2 additions & 0 deletions src/DebugCommand/CheckAlterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);

$operator->output(sprintf('<fg=cyan>DBとの差分:%d</>', count($alter->getMigrationList())));

return 0;
}
}
2 changes: 2 additions & 0 deletions src/DebugCommand/ReflectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
'conv'
);
CreateQueryReflector::fromPDO($this->getPDO('conv'), 'conv', 'database', new DropOnlySilentOperator());

return 0;
}
}
2 changes: 2 additions & 0 deletions src/DebugCommand/SetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$output->writeln('<fg=cyan>setup success</>');

return 0;
}
}
18 changes: 9 additions & 9 deletions tests/MigrationGeneratorMultiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function generateProvider()
{
$values = [
[
'vendor/laminaria/conv-test-suite/cases/unit/000',
'vendor/howyi/conv-test-suite/cases/unit/000',
[],
[
TableCreateMigration::class,
Expand All @@ -90,29 +90,29 @@ public function generateProvider()
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/001',
'vendor/howyi/conv-test-suite/cases/unit/001',
[],
[
TableAlterMigration::class,
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/002',
'vendor/howyi/conv-test-suite/cases/unit/002',
[],
[
TableDropMigration::class,
ViewDropMigration::class,
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/003',
'vendor/howyi/conv-test-suite/cases/unit/003',
[],
[
ViewAlterMigration::class,
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/004',
'vendor/howyi/conv-test-suite/cases/unit/004',
[
[
'message' => 'Table tbl_country is missing. Choose an action.',
Expand All @@ -130,7 +130,7 @@ public function generateProvider()
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/005',
'vendor/howyi/conv-test-suite/cases/unit/005',
[
[
'message' => 'View view_user2 is missing. Choose an action.',
Expand All @@ -147,7 +147,7 @@ public function generateProvider()
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/006',
'vendor/howyi/conv-test-suite/cases/unit/006',
[
[
'message' => 'Column tbl_music.name is missing. Choose an action.',
Expand All @@ -163,14 +163,14 @@ public function generateProvider()
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/007',
'vendor/howyi/conv-test-suite/cases/unit/007',
[],
[
TableAlterMigration::class,
]
],
[
'vendor/laminaria/conv-test-suite/cases/unit/008',
'vendor/howyi/conv-test-suite/cases/unit/008',
[],
[
TableAlterMigration::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/MigrationGeneratorSingleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testGenerate($name, $beforeDir, $afterDir, $upPath, $downPath, $

public function generateProvider()
{
$dir = 'vendor/laminaria/conv-test-suite/cases/part/';
$dir = 'vendor/howyi/conv-test-suite/cases/part/';

foreach (TestUtility::getPdoArray() as $pdo) {
foreach (new \DirectoryIterator($dir) as $fileInfo) {
Expand Down

0 comments on commit 096f711

Please sign in to comment.