예제 #1
0
 /**
  * @expectedException BadMethodCallException
  */
 public function testCallsToUnsupportedPropetiesFail()
 {
     $root = new SimpleDOM('<root><child /></root>');
     try {
         $root->schemaTypeInfo();
     } catch (Exception $e) {
         $this->assertSame('DOM property schemaTypeInfo is not supported', $e->getMessage());
         throw $e;
     }
 }