Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
opt
/
alt
/
php70
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//opt/alt/php70/usr/share/pear/test/XML_Util/tests/RaiseErrorTests.php
<?php class RaiseErrorTests extends AbstractUnitTests { /** * @covers XML_Util::raiseError() */ public function testRaiseError() { $code = 12345; $message = "I am an error"; $error = XML_Util::raiseError($message, $code); $this->assertInstanceOf('PEAR_Error', $error); $this->assertEquals($message, $error->getMessage()); $this->assertEquals($code, $error->getCode()); } }