/** * @expectedException \SebastianBergmann\PeekAndPoke\BadMethodCallException */ public function testExceptionIsRaisedWhenInvokedMethodDoesNotExist() { $proxy = new Proxy(new \StdClass()); $proxy->nonExistantMethod(); }