Author: Rolf Vreijdenberger
Inheritance: extends Command
 public function testExceptionFromCommandException()
 {
     $command = new ExceptionCommand("test", 111);
     try {
         $command->execute();
         $this->shouldNotComeHere("exception should have been thrown");
     } catch (\Exception $e) {
         $this->assertEquals(111, $e->getCode());
         $this->assertEquals('test', $e->getMessage());
         $this->assertEquals("izzum\\command\\Exception", get_class($e));
     }
 }