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

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

Tests jsmin filter with non-string param
С версии: 2016-01-24
Автор: Serghei Iakovlev ([email protected])
    public function testFilterJsminWithNonStringParam()
    {
        $this->specify("The jsmin filter needs a string parameter", function () {
            $jsmin = new Jsmin();
            $jsmin->filter(new \stdClass());
        }, ['throws' => ['InvalidArgumentException', "Parameter 'content' must be a string"]]);
    }