Esempio n. 1
0
 /**
  * Extension interface test
  */
 public function testExtensionInterface()
 {
     $table = new Table();
     $table->addExtension(new ColVis());
     $this->assertEquals($table->getExtension(ColVis::PROPERTY_NAME)->getPropertyName(), ColVis::PROPERTY_NAME);
     $this->assertEquals($table->getExtension(ColVis::PROPERTY_NAME)->getDomName(), ColVis::DOM_NAME);
     $this->assertEquals($table->getExtension(ColVis::PROPERTY_NAME)->getProperties(), []);
     $this->assertEquals($table->getExtension(ColVis::PROPERTY_NAME)->getCallbacks(), []);
 }