Esempio n. 1
0
 /**
  * @expectedException BadMethodCallException
  */
 public function testCallsToUnsupportedMethodsFail()
 {
     $root = new SimpleDOM('<root><child /></root>');
     try {
         $root->getAttributeNode('foo');
     } catch (Exception $e) {
         $this->assertSame('DOM method getAttributeNode() is not supported', $e->getMessage());
         throw $e;
     }
 }