public function testCanAddClasses() { $testForm = new Form(); $testForm->addClass('test1'); $testForm->addClass('test2'); $expected = "<form method='post' id='' name='' role='form' action='' class='test1 test2'>" . PHP_EOL . "</form>" . PHP_EOL; $this->assertEquals($expected, $testForm->__toString(), "Could not apply CSS classes"); }