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); }); }
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); }