Пример #1
0
 public function testSetAttr()
 {
     // Test mode 'add'
     self::$l->setAttr(['class' => 'bold'], 'add');
     $this->assertEquals('main emph bold', self::$l->getAttr()['class']);
     // Test mode 'replace'
     self::$l->setAttr(['class' => 'main emph'], 'replace');
     $this->assertEquals('main emph', self::$l->getAttr()['class']);
 }