PhroznTest\Site\View\JsTest::testViewRendering PHP Method

testViewRendering() public method

public testViewRendering ( )
    public function testViewRendering()
    {
        $jsIn = dirname(__FILE__) . '/scripts/jquery/test.js';
        $jsOut = dirname(__FILE__) . '/scripts/jquery/test.js';
        $view = new View($jsIn);
        $rendered = $view->render();
        $loaded = file_get_contents($jsOut);
        $this->assertSame(trim($loaded), trim($rendered));
    }