Phalcon\Test\Unit\Assets\Filters\JsminTest::testFilterJsminUnterminatedRegexpLiteral PHP Method

testFilterJsminUnterminatedRegexpLiteral() public method

Tests jsmin filter with unterminated Regular Expression literal
Since: 2016-01-24
Author: Serghei Iakovlev ([email protected])
    public function testFilterJsminUnterminatedRegexpLiteral()
    {
        $this->specify("The jsmin with unterminated Regular Expression literal does not throws exception", function () {
            $jsmin = new Jsmin();
            $jsmin->filter('b = /[a-z]+');
        }, ['throws' => ['Phalcon\\Assets\\Exception', "Unterminated Regular Expression literal."]]);
    }