示例#1
0
 /**
  * Tests {@link Object::hasExtension() and Object::extInstance()}
  */
 public function testExtInstance()
 {
     $obj = new ObjectTest_ExtensionTest2();
     $this->assertTrue($obj->hasExtension('ObjectTest_Extension'));
     $this->assertTrue($obj->extInstance('ObjectTest_Extension')->is_a('ObjectTest_Extension'));
 }