config->set('AutoFormat.Linkify', true);
}
function testLinkifyURLInRootNode() {
$this->assertResult(
'http://example.com',
'http://example.com'
);
}
function testLinkifyURLInInlineNode() {
$this->assertResult(
'http://example.com',
'http://example.com'
);
}
function testBasicUsageCase() {
$this->assertResult(
'This URL http://example.com is what you need',
'This URL http://example.com is what you need'
);
}
function testIgnoreURLInATag() {
$this->assertResult(
'http://example.com/'
);
}
function testNeeded() {
$this->config->set('HTML.Allowed', 'b');
$this->expectError('Cannot enable Linkify injector because a is not allowed');
$this->assertResult('http://example.com/');
}
function testExcludes() {
$this->assertResult('http://example.com');
}
}
// vim: et sw=4 sts=4