Ejemplo n.º 1
0
 /**
  * Method to test def().
  *
  * @return void
  *
  * @covers Windwalker\Form\Field\AbstractField::def
  */
 public function testDef()
 {
     $this->instance->def('foo', 'bar');
     $this->assertEquals('bar', $this->instance->getAttribute('foo'));
     $this->instance->def('class', 'bar');
     $this->assertEquals('stub-flower', $this->instance->getAttribute('class'));
 }