lithium\tests\cases\template\view\adapter\FileTest::testInvalidTemplateType PHP Метод

testInvalidTemplateType() публичный Метод

    public function testInvalidTemplateType()
    {
        $file = new File(array('compile' => false, 'paths' => array('template' => '{:library}/views/{:controller}/{:template}.{:type}.php')));
        $this->assertException("Invalid template type 'invalid'.", function () use($file) {
            $file->template('invalid', array('template' => 'foo'));
        });
    }