Skip to content

Commit 74f762c

Browse files
committed
Update CreateAPITestCaseTest.php
1 parent d3c384f commit 74f762c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/webfiori/framework/test/cli/CreateAPITestCaseTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ public function testCreateAPITestCase00() {
2020
'--service' => 'c'
2121
]);
2222

23-
if ($output[0] !== "Error: The argument --manager has invalid value: Not a class: A\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: Not a class: A\n", $output[0]);
23+
$this->assertStringContainsString("Error: The argument --manager has invalid value", $output[0]);
2824
$this->assertEquals(-1, $this->getExitCode());
2925
}
3026
/**

0 commit comments

Comments
 (0)