コード例 #1
0
ファイル: FormTest.php プロジェクト: vascowhite/forms
 public function testCanSetName()
 {
     $testForm = new Form();
     $testForm->setName('testing');
     $expected = "<form method='post' id='' name='testing' role='form' action='' class=''>" . PHP_EOL . "</form>" . PHP_EOL;
     $this->assertEquals($expected, $testForm->__toString(), "toString method failed.");
 }