Commit: ce9b0f0812850bd1878b9b7c379c613ba97ad645

Author: gwoo | Date: 2011-05-14 19:07:26 -0700
fixing `command\HelpTest` after changes to `command\Test`
diff --git a/libraries/lithium/tests/cases/console/command/HelpTest.php b/libraries/lithium/tests/cases/console/command/HelpTest.php index 3b4d518..6aefb62 100644 --- a/libraries/lithium/tests/cases/console/command/HelpTest.php +++ b/libraries/lithium/tests/cases/console/command/HelpTest.php @@ -50,16 +50,17 @@ class HelpTest extends \lithium\test\Unit { $result = $command->run('Test'); $this->assertTrue($result); - $expected = "li3 test [--case=<string>] [--group=<string>] [--filters=<string>]"; + $expected = "li3 test [--filters=<string>] [--format=<string>] [<path>]"; + $expected = preg_quote($expected); $result = $command->response->output; - $this->assertTrue(strpos($result, $expected) !== false); + $this->assertPattern("/{$expected}/", $result); - $expected = "OPTIONS\n missing\n"; + $expected = "OPTIONS\n <path>\n"; $expected = preg_quote($expected); $result = $command->response->output; $this->assertPattern("/{$expected}/", $result); - $expected = "missing\n"; + $expected = "DESCRIPTION\n"; $expected = preg_quote($expected); $result = $command->response->output; $this->assertPattern("/{$expected}/", $result);