D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php80
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
/
Filename :
RaiseErrorTests.php
back
Copy
<?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()); } }