diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-01-30 09:12:57 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-01-30 09:12:57 +0100 |
commit | 8c893b79d230cc844226bdf3b1de95cd5a99ecb2 (patch) | |
tree | f8e6e1df519c9b85bd16bdc31f1ae6a3b16ce6e7 /tests/Framework/BaseReplacer.php | |
parent | 1978ae97a5e0feb8d205c5fcbaa2cc16ce3ffc28 (diff) |
Branching off for release 1.0
Diffstat (limited to 'tests/Framework/BaseReplacer.php')
-rw-r--r-- | tests/Framework/BaseReplacer.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/Framework/BaseReplacer.php b/tests/Framework/BaseReplacer.php deleted file mode 100644 index 44a9604ac..000000000 --- a/tests/Framework/BaseReplacer.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -/** - * Test class to test rcube_base_replacer class - * - * @package Tests - */ -class Framework_BaseReplacer extends PHPUnit_Framework_TestCase -{ - - /** - * Class constructor - */ - function test_class() - { - $object = new rcube_base_replacer('test'); - - $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); - } -} |