/** * Tests if Magic Methods throws expected exception when unknown method is called. * * @expectedException \BadMethodCallException * @expectedExceptionMessage Unknown method */ public function testMagicMethodsThrowsExceptionsIfCalledWithUnknownMethodName() { $target = new Permissions(); $target->unknownMethod('dummyUser'); }