Phalcon\Test\Unit\Assets\Filters\JsminTest::testFilterJsminUnterminatedStringLiteral PHP Метод

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

Tests jsmin filter with unterminated string literal
С версии: 2016-01-24
Автор: Serghei Iakovlev ([email protected])
    public function testFilterJsminUnterminatedStringLiteral()
    {
        $this->specify("The jsmin with unterminated string literal does not throws exception", function () {
            $jsmin = new Jsmin();
            $jsmin->filter('a = "');
        }, ['throws' => ['Phalcon\\Assets\\Exception', "Unterminated string literal."]]);
    }