Thumbor\Url\BuilderTest::testToString PHP Метод

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

public testToString ( )
    public function testToString()
    {
        $url = (string) Builder::construct('http://thumbor.example.com', 'butts', 'http://example.com/llamas.jpg')->fitIn(320, 240)->smartCrop(true)->addFilter('brightness', 42);
        $expected = 'http://thumbor.example.com/dgzk7MVde2RUq5Hbq40FvfRdno0=/fit-in/320x240/smart/filters:brightness(42)/http://example.com/llamas.jpg';
        $this->assertEquals($expected, $url);
    }