@@ -76,7 +76,7 @@ protected function setUp(): void
7676 public function testCreateMigrationDefault (): void
7777 {
7878 $ application = new PhinxApplication ();
79- $ application ->add (new Create ());
79+ $ application ->addCommand (new Create ());
8080
8181 /** @var Create $command */
8282 $ command = $ application ->find ('create ' );
@@ -110,7 +110,7 @@ public function testCreateMigrationDefault(): void
110110 public function testCreateMigrationWithName (): void
111111 {
112112 $ application = new PhinxApplication ();
113- $ application ->add (new Create ());
113+ $ application ->addCommand (new Create ());
114114
115115 /** @var Create $command */
116116 $ command = $ application ->find ('create ' );
@@ -139,7 +139,7 @@ public function testCreateMigrationWithName(): void
139139 public function testExecuteWithDuplicateMigrationNames ()
140140 {
141141 $ application = new PhinxApplication ();
142- $ application ->add (new Create ());
142+ $ application ->addCommand (new Create ());
143143
144144 /** @var Create $command */
145145 $ command = $ application ->find ('create ' );
@@ -166,7 +166,7 @@ public function testExecuteWithDuplicateMigrationNames()
166166 public function testExecuteWithDuplicateMigrationNamesWithNamespace ()
167167 {
168168 $ application = new PhinxApplication ();
169- $ application ->add (new Create ());
169+ $ application ->addCommand (new Create ());
170170
171171 /** @var Create $command */
172172 $ command = $ application ->find ('create ' );
@@ -200,7 +200,7 @@ public function testExecuteWithDuplicateMigrationNamesWithNamespace()
200200 public function testSupplyingBothClassAndTemplateAtCommandLineThrowsException ()
201201 {
202202 $ application = new PhinxApplication ();
203- $ application ->add (new Create ());
203+ $ application ->addCommand (new Create ());
204204
205205 /** @var Create $command $command */
206206 $ command = $ application ->find ('create ' );
@@ -225,7 +225,7 @@ public function testSupplyingBothClassAndTemplateAtCommandLineThrowsException()
225225 public function testSupplyingBothClassAndTemplateInConfigThrowsException ()
226226 {
227227 $ application = new PhinxApplication ();
228- $ application ->add (new Create ());
228+ $ application ->addCommand (new Create ());
229229
230230 /** @var Create $command $command */
231231 $ command = $ application ->find ('create ' );
@@ -292,7 +292,7 @@ public function provideFailingTemplateGenerator()
292292 public function testTemplateGeneratorsWithoutCorrectInterfaceThrowsException (array $ config , array $ commandLine , $ exceptionMessage )
293293 {
294294 $ application = new PhinxApplication ();
295- $ application ->add (new Create ());
295+ $ application ->addCommand (new Create ());
296296
297297 /** @var Create $command $command */
298298 $ command = $ application ->find ('create ' );
@@ -360,7 +360,7 @@ public function provideNullTemplateGenerator()
360360 public function testNullTemplateGeneratorsDoNotFail (array $ config , array $ commandLine )
361361 {
362362 $ application = new PhinxApplication ();
363- $ application ->add (new Create ());
363+ $ application ->addCommand (new Create ());
364364
365365 /** @var Create $command $command */
366366 $ command = $ application ->find ('create ' );
@@ -424,7 +424,7 @@ public function provideSimpleTemplateGenerator()
424424 public function testSimpleTemplateGeneratorsIsCorrectlyPopulated (array $ config , array $ commandLine )
425425 {
426426 $ application = new PhinxApplication ();
427- $ application ->add (new Create ());
427+ $ application ->addCommand (new Create ());
428428
429429 /** @var Create $command $command */
430430 $ command = $ application ->find ('create ' );
@@ -461,7 +461,7 @@ public function testSimpleTemplateGeneratorsIsCorrectlyPopulated(array $config,
461461 public function testCreateMigrationWithChangeStyleInConfig (): void
462462 {
463463 $ application = new PhinxApplication ();
464- $ application ->add (new Create ());
464+ $ application ->addCommand (new Create ());
465465
466466 /** @var Create $command */
467467 $ command = $ application ->find ('create ' );
@@ -497,7 +497,7 @@ public function testCreateMigrationWithChangeStyleInConfig(): void
497497 public function testCreateMigrationWithChangeStyleAsFlag (): void
498498 {
499499 $ application = new PhinxApplication ();
500- $ application ->add (new Create ());
500+ $ application ->addCommand (new Create ());
501501
502502 /** @var Create $command */
503503 $ command = $ application ->find ('create ' );
@@ -531,7 +531,7 @@ public function testCreateMigrationWithChangeStyleAsFlag(): void
531531 public function testCreateMigrationWithUpDownStyleAsFlag (): void
532532 {
533533 $ application = new PhinxApplication ();
534- $ application ->add (new Create ());
534+ $ application ->addCommand (new Create ());
535535
536536 /** @var Create $command */
537537 $ command = $ application ->find ('create ' );
@@ -565,7 +565,7 @@ public function testCreateMigrationWithUpDownStyleAsFlag(): void
565565 public function testCreateMigrationWithExistingTimestamp (): void
566566 {
567567 $ application = new PhinxApplication ();
568- $ application ->add (new Create ());
568+ $ application ->addCommand (new Create ());
569569
570570 /** @var Create $command */
571571 $ command = $ application ->find ('create ' );
@@ -592,7 +592,7 @@ public function testCreateMigrationWithExistingTimestamp(): void
592592 public function testCreateMigrationWithInvalidStyleFlagThrows (): void
593593 {
594594 $ application = new PhinxApplication ();
595- $ application ->add (new Create ());
595+ $ application ->addCommand (new Create ());
596596
597597 /** @var Create $command */
598598 $ command = $ application ->find ('create ' );
@@ -617,7 +617,7 @@ public function testCreateMigrationWithInvalidStyleFlagThrows(): void
617617 public function testCreateWithKeywordNameThrows (): void
618618 {
619619 $ application = new PhinxApplication ();
620- $ application ->add (new Create ());
620+ $ application ->addCommand (new Create ());
621621
622622 /** @var Create $command */
623623 $ command = $ application ->find ('create ' );
0 commit comments