Example #1
0
 function testErrorExceptionHasErrorOutput()
 {
     try {
         cmd::ls('--foo');
     } catch (ErrorException $e) {
         $this->assertEquals(1, $e->getCode());
         $this->assertNotEmpty($e->getErrorOutput());
         return;
     }
     $this->fail("Expected Exception Commander\\ErrorException");
 }