public function testCannotSetInvalidMethod() { $testForm = new Form(); $testForm->setMethod('INVALID'); $expected = "<form method='post' id='' name='' role='form' action='' class=''>" . PHP_EOL . "</form>" . PHP_EOL; $this->assertEquals($expected, $testForm->__toString(), "toString method failed."); }