assertInstanceOf('rcube_base_replacer', $object, "Class constructor"); } /** * Test replace() */ function test_replace() { $base = 'http://thisshouldntbetheurl.bob.com/'; $html = 'Test URL'; $replacer = new rcube_base_replacer($base); $response = $replacer->replace($html); $this->assertSame('Test URL', $response); } }