/** * @expectedException Exception * @expectedExceptionMessage The specified function: thisisareallyfakefunction is not a part of the string class. */ public function test__call_invalid_function() { $string = new williamknauss\String(); $string->thisisareallyfakefunction(); }