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

testFilterJsminUnterminatedComment() public method

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