public testRunMultipleTestsWithAbsolutePath ( ) |
public function testRunMultipleTestsWithAbsolutePath()
{
$backup = error_reporting();
error_reporting(E_ALL);
$command = new Test(array('request' => $this->request, 'classes' => $this->classes));
$lithium = Libraries::get('lithium', 'path');
$path = $lithium . '/tests/mocks/test/cases';
$command->run($path);
$expected = "4 exceptions";
$expected = preg_quote($expected, '/');
$result = $command->response->output;
$this->assertPattern("/{$expected}/", $result);
error_reporting($backup);
}