Source

						public function testRun() {
		$command = new Help(array('request' => $this->request, 'classes' => $this->classes));
		$this->assertTrue($command->run());

		$expected = "COMMANDS via lithium\n";
		$expected = preg_quote($expected);
		$result = $command->response->output;
		$this->assertPattern("/{$expected}/", $result);

		$expected = preg_quote($expected);
		$result = $command->response->output;
		$pattern = "/\s+test\s+Runs a given set of tests and outputs the results\./ms";
		$this->assertPattern($pattern, $result);
	}