public function testRunWithInvalidLibrary()
{
$command = new Test(array('request' => $this->request, 'classes' => $this->classes));
$command->format = 'foobar';
$path = LITHIUM_LIBRARY_PATH . '/bob/tests/mocks/test/cases/MockTest.php';
$command->run($path);
$expected = '#^(No library found in path `.*`\\.|Path `.*` not found\\.)#i';
$result = $command->response->error;
$this->assertPattern($expected, $result);
}