public function testItHandlesFailureGracefully() { $this->assertThrows('Bart\\Shell\\CommandException', 'Got bad status', function () { $c = new Command('exit 1'); $c->run(); }); }