luyatests\core\web\ViewTest::testCompress PHP Method

testCompress() public method

public testCompress ( )
    public function testCompress()
    {
        $view = new View();
        $string = '  ';
        $resultString = $view->compress($string);
        $this->assertEquals(1, strlen($resultString));
        $string = ' ';
        $resultString = $view->compress($string);
        $this->assertEquals(1, strlen($resultString));
        $string = '<test>

        </test>';
        $resultString = $view->compress($string);
        $this->assertEquals(14, strlen($resultString));
        $string = 'test  test test';
        $resultString = $view->compress($string);
        $this->assertEquals(14, strlen($resultString));
    }