예제 #1
0
 public function testGetInstance()
 {
     $this->assertInstanceOf('\\SMW\\DataTypeRegistry', $this->dataTypeRegistry);
     $this->assertSame($this->dataTypeRegistry, DataTypeRegistry::getInstance());
     DataTypeRegistry::clear();
     $this->assertNotSame($this->dataTypeRegistry, DataTypeRegistry::getInstance());
 }
 protected function tearDown()
 {
     PropertyRegistry::clear();
     DataTypeRegistry::clear();
     parent::tearDown();
 }
 /**
  * @since 2.4
  */
 public function clear()
 {
     $this->dataTypeRegistry->clear();
     ValueValidatorRegistry::getInstance()->clear();
     self::$instance = null;
 }