public function testCanSetAction() { $testForm = new Form(); $testForm->setAction('testaction'); $expected = "<form method='post' id='' name='' role='form' action='testaction' class=''>" . PHP_EOL . "</form>" . PHP_EOL; $this->assertEquals($expected, $testForm->__toString(), "Could not set action."); }