Example #1
0
 public function testIssue1210()
 {
     $this->specify("Labels are not properly rendered", function () {
         $element = new Text("test");
         $element->setLabel("Test");
         $actual = $element->label();
         $expected = '<label for="test">Test</label>';
         expect($actual)->equals($expected);
     });
 }
Example #2
0
 public function testIssue1210()
 {
     $e = new \Phalcon\Forms\Element\Text('test');
     $e->setLabel('Test');
     $actual = $e->label();
     $expected = '<label for="test">Test</label>';
     $this->assertEquals($actual, $expected);
 }