Ejemplo n.º 1
0
 public function testUnfocus()
 {
     $pattern = 'autofocus="autofocus"';
     $text = new Text('');
     $result = $text->unfocus()->render();
     $message = "autofocus attribute should not be set";
     $this->assertNotContains($pattern, $result, $message);
     $text = new Text('');
     $result = $text->autofocus()->unfocus()->render();
     $message = "autofocus attribute should be removed";
     $this->assertNotContains($pattern, $result, $message);
 }