1 | <?php |
||
21 | class XmlValidatorTest extends \PHPUnit_Framework_TestCase |
||
22 | { |
||
23 | protected $xml; |
||
24 | |||
25 | public function setUp() |
||
35 | |||
36 | /** |
||
37 | * testCheckTrue. |
||
38 | */ |
||
39 | public function testCheckTrue() |
||
44 | |||
45 | /** |
||
46 | * testException. |
||
47 | * |
||
48 | * @expectedException Hogosha\Monitor\Exception\ValidatorException |
||
49 | * @expectedExceptionMessage this node "//nickname" does not exist |
||
50 | */ |
||
51 | public function testException() |
||
56 | |||
57 | /** |
||
58 | * testInvalidXml. |
||
59 | * |
||
60 | * @expectedException Hogosha\Monitor\Exception\ValidatorException |
||
61 | * @expectedExceptionMessage This xml is not valid |
||
62 | */ |
||
63 | public function testInvalidXml() |
||
68 | } |
||
69 |