3 if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
4 print "This script must be run from the command line\n";
8 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
9 define('LACONICA', true);
11 require_once INSTALLDIR . '/lib/common.php';
13 class HashTagDetectionTest extends PHPUnit_Framework_TestCase
16 * @dataProvider provider
19 public function testProduction($content, $expected)
21 $rendered = common_render_text($content);
22 $this->assertEquals($expected, $rendered);
25 static public function provider()
31 '#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>'),