/** * @test */ public function ShouldRaiseExceptionShouldFailWhenExceptationRaisedDoesNotMatchExpectedException() { $expected = new Exception("potato"); $actual = new ErrorException("potato"); try { Expectations::shouldRaiseException($actual, $expected); throw new Exception("shouldRaiseException() Should Fail When Exceptation Raised Does Not Match Expected Exception"); } catch (PHPUnit_Framework_ExpectationFailedException $e) { } }