PATH:
opt
/
cpanel
/
ea-php70
/
root
/
usr
/
share
/
tests
/
pear
/
XML_Util
/
tests
<?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()); } }
[-] CreateStartElementTests.php
[edit]
[-] CreateTagFromArrayTests.php
[edit]
[-] CreateEndElementTests.php
[edit]
[-] AttributesToStringTests.php
[edit]
[+]
..
[-] RaiseErrorTests.php
[edit]
[-] Bug5392Tests.php
[edit]
[-] Bug18343Tests.php
[edit]
[-] Bug21177Tests.php
[edit]
[-] ApiVersionTests.php
[edit]
[-] AbstractUnitTests.php
[edit]
[-] Bug21184Tests.php
[edit]
[-] ReverseEntitiesTests.php
[edit]
[-] CollapseEmptyTagsTests.php
[edit]
[-] Bug4950Tests.php
[edit]
[-] CreateTagTests.php
[edit]
[-] GetDocTypeDeclarationTests.php
[edit]
[-] SplitQualifiedNameTests.php
[edit]
[-] CreateCommentTests.php
[edit]
[-] IsValidNameTests.php
[edit]
[-] GetXmlDeclarationTests.php
[edit]
[-] CreateCDataSectionTests.php
[edit]
[-] ReplaceEntitiesTests.php
[edit]