Example #1
0
 function testCommandThrowsErrorExceptionWhenCommandExitsWithError()
 {
     $false = cmd::command(cmd::which('false'));
     try {
         $false();
     } catch (ErrorException $e) {
         $this->assertEquals(1, $e->getCode());
         return;
     }
     $this->fail("Expected Exception Commander\\ErrorException");
 }