]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
renamed to plural, for consitency
authorBrenda Wallace <shiny@cpan.org>
Tue, 25 Aug 2009 22:00:29 +0000 (10:00 +1200)
committerBrenda Wallace <shiny@cpan.org>
Tue, 25 Aug 2009 22:00:29 +0000 (10:00 +1200)
tests/HashTagDetectionTest.php [deleted file]
tests/HashTagDetectionTests.php [new file with mode: 0644]

diff --git a/tests/HashTagDetectionTest.php b/tests/HashTagDetectionTest.php
deleted file mode 100644 (file)
index 55e1f65..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
-    print "This script must be run from the command line\n";
-    exit();
-}
-
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
-define('LACONICA', true);
-
-require_once INSTALLDIR . '/lib/common.php';
-
-class HashTagDetectionTest extends PHPUnit_Framework_TestCase
-{
-    /**
-     * @dataProvider provider
-     *
-     */
-    public function testProduction($content, $expected)
-    {
-        $rendered = common_render_text($content);
-        $this->assertEquals($expected, $rendered);
-    }
-
-    static public function provider()
-    {
-        return array(
-                     array('hello',
-                           'hello'),
-                     array('#hello',
-                           '#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>'),
-                     );
-    }
-}
-
diff --git a/tests/HashTagDetectionTests.php b/tests/HashTagDetectionTests.php
new file mode 100644 (file)
index 0000000..4f0b31b
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
+    print "This script must be run from the command line\n";
+    exit();
+}
+
+define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
+define('LACONICA', true);
+
+require_once INSTALLDIR . '/lib/common.php';
+
+class HashTagDetectionTests extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @dataProvider provider
+     *
+     */
+    public function testProduction($content, $expected)
+    {
+        $rendered = common_render_text($content);
+        $this->assertEquals($expected, $rendered);
+    }
+
+    static public function provider()
+    {
+        return array(
+                     array('hello',
+                           'hello'),
+                     array('#hello',
+                           '#<span class="tag"><a href="' . common_local_url('tag', array('tag' => common_canonical_tag('hello'))) . '" rel="tag">hello</a></span>'),
+                     );
+    }
+}
+