/** * @expectedException PromisePay\Exception\NotFound */ public function testInvokeNonExistingClass() { PromisePay::NonExistingClass()->Method(); }