assertEquals($expected, $testHandler); } /** * @covers Ramsey\Uuid\Console\Util\ErrorHandler::handle * @expectedException ErrorException * @expectedExceptionMessage Test exception */ public function testHandle() { error_reporting(E_ALL); ErrorHandler::handle(1, 'Test exception', __FILE__, __LINE__); } /** * @covers Ramsey\Uuid\Console\Util\ErrorHandler::handle */ public function testHandleNoException() { error_reporting(0); $this->assertEmpty(ErrorHandler::handle(1, 'Test exception', __FILE__, __LINE__)); } }