/** * @expectedException \BadMethodCallException */ public function testBadMethodCall() { $git = new Git(); $git->foo(); }