| 1 | <?php |
||
| 8 | class XmlValidatorTest extends \PHPUnit_Framework_TestCase |
||
| 9 | { |
||
| 10 | |||
| 11 | protected $xml; |
||
| 12 | |||
| 13 | public function setUp() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * testCheckTrue |
||
| 26 | */ |
||
| 27 | public function testCheckTrue() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * testException |
||
| 35 | * @expectedException Hogosha\Monitor\Exception\ValidatorException |
||
| 36 | * @expectedExceptionMessage this node "//nickname" does not exist |
||
| 37 | */ |
||
| 38 | public function testException() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * testInvalidXml |
||
| 46 | * @expectedException Hogosha\Monitor\Exception\ValidatorException |
||
| 47 | * @expectedExceptionMessage This xml is not valid |
||
| 48 | */ |
||
| 49 | public function testInvalidXml() |
||
| 54 | } |
||
| 55 |