config = array('AutoFormat.Linkify' => true); } function testLinkify() { $this->assertResult( 'http://example.com', 'http://example.com' ); $this->assertResult( 'http://example.com', 'http://example.com' ); $this->assertResult( 'This URL http://example.com is what you need', 'This URL http://example.com is what you need' ); $this->assertResult( 'http://example.com/' ); } function testNeeded() { $this->expectError('Cannot enable Linkify injector because a is not allowed'); $this->assertResult('http://example.com/', true, array('AutoFormat.Linkify' => true, 'HTML.Allowed' => 'b')); } }