PopTest\Form\FormTest::testSetAndGetTemplate PHP 메소드

testSetAndGetTemplate() 공개 메소드

    public function testSetAndGetTemplate()
    {
        $f = new Form('/submit', 'post');
        $f->setTemplate(__DIR__ . '/../../../../../public/examples/form/form.phtml');
        $f->setTemplate('This is the template');
        $this->assertEquals('This is the template', $f->getTemplate());
        $f->setTemplate(__DIR__ . '/../tmp/access.txt');
        $this->assertContains('testuser', $f->getTemplate());
    }