Aleksander Machniak
2013-08-07 a79017e662273c519a2c50d10ef12c11885d2d87
tests/Framework/BaseReplacer.php
@@ -17,4 +17,18 @@
        $this->assertInstanceOf('rcube_base_replacer', $object, "Class constructor");
    }
    /**
     * Test replace()
     */
    function test_replace()
    {
        $base = 'http://thisshouldntbetheurl.bob.com/';
        $html = '<A href=http://shouldbethislink.com>Test URL</A>';
        $replacer = new rcube_base_replacer($base);
        $response = $replacer->replace($html);
        $this->assertSame('<A href="http://shouldbethislink.com">Test URL</A>', $response);
    }
}