File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
tests/webfiori/framework/test/cli Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,18 @@ class CreateAPITestCaseTest extends CLITestCase {
1313 * @test
1414 */
1515 public function testCreateAPITestCase00 () {
16- $ this ->assertEquals ([
17- "Error: The argument --manager has invalid value. \n" ,
18- ], $ this ->executeMultiCommand ([
16+ $ output = $ this ->executeMultiCommand ([
1917 CreateCommand::class,
2018 '--c ' => 'api-test ' ,
2119 '--manager ' => 'A ' ,
2220 '--service ' => 'c '
23- ]));
21+ ]);
22+
23+ if ($ output [0 ] !== "Error: The argument --manager has invalid value. \n" ) {
24+ $ this ->fail ("Expected error message not found. Full output: " . implode ('' , $ output ));
25+ }
26+
27+ $ this ->assertEquals ("Error: The argument --manager has invalid value. \n" , $ output [0 ]);
2428 $ this ->assertEquals (-1 , $ this ->getExitCode ());
2529 }
2630 /**
You can’t perform that action at this time.
0 commit comments