PopTest\Form\FormTest::testSetAndGetTemplate PHP Method

testSetAndGetTemplate() public method

    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());
    }