diff --git a/src/Phinx/Migration/Migration.template.php.dist b/src/Phinx/Migration/Migration.template.php.dist index 3b278a987..12eb6fb7e 100644 --- a/src/Phinx/Migration/Migration.template.php.dist +++ b/src/Phinx/Migration/Migration.template.php.dist @@ -1,6 +1,5 @@ assertRegExp("/^[0-9]{14}.php/", $fileName); $date = substr($fileName, 0, 14); $this->assertFileExists($this->config->getMigrationPaths()[0]); - $prefix = "assertStringStartsWith($prefix, file_get_contents($this->config->getMigrationPaths()[0] . DIRECTORY_SEPARATOR . $fileName)); } @@ -125,9 +125,8 @@ public function testCreateMigrationWithName(): void $this->assertCount(1, $files); $fileName = current($files); $this->assertRegExp("/^[0-9]{14}_my_migration.php/", $fileName); - $date = substr($fileName, 0, 14); $this->assertFileExists($this->config->getMigrationPaths()[0]); - $prefix = "assertStringStartsWith($prefix, file_get_contents($this->config->getMigrationPaths()[0] . DIRECTORY_SEPARATOR . $fileName)); }