Beispiel #1
0
 public function tearDown()
 {
     TableRegistry::clear();
     Type::clear();
     Type::map($this->_map);
     parent::tearDown();
 }
Beispiel #2
0
 /**
  * Tests clear function in conjunction with map
  *
  * @return void
  */
 public function testClear()
 {
     $map = Type::map();
     $this->assertNotEmpty($map);
     $type = Type::build('float');
     Type::clear();
     $this->assertEmpty(Type::map());
     Type::map($map);
     $this->assertEquals($map, Type::map());
     $this->assertNotSame($type, Type::build('float'));
 }