Esempio n. 1
0
 /**
  * Setup our test
  * (runs before each test)
  *
  * @return void
  */
 protected function setUp()
 {
     // make sure we delete all the added nodes before we create a new TestCase
     EncoderNode::clean();
     // Create a new FQ app,
     // since we need one pretty much everywhere
     $this->_peApp = new Encoder();
 }
Esempio n. 2
0
 public function testStaticClean()
 {
     $this->addBuildingNode();
     $this->addBuildingHouseNode();
     $this->assertCount(2, EncoderNode::getNodeTypes());
     $this->assertCount(2, EncoderNode::getNodes());
     EncoderNode::clean();
     $this->assertEmpty(EncoderNode::getNodeTypes());
     $this->assertEmpty(EncoderNode::getNodes());
 }