/** * @expectedException \SimpleHash\Exception\SimpleHashException * @expectedExceptionMessage Unsupported method "test" called! */ public function testUnspportedMethod() { $hashFactory = new HashFactory(); $hashFactory->test(); }