Tagged 0.7.5
[scuttle] / includes / utf8 / tests / index.php
diff --git a/includes/utf8/tests/index.php b/includes/utf8/tests/index.php
new file mode 100644 (file)
index 0000000..0ee8b3a
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+header('Content-Type: text/html; charset=utf-8');
+?>
+<html>
+<head>
+<title>PHPUTF8 Tests</title>
+</head>
+<body>
+<ul>
+<li>
+    <a href="runtests.php">RUN ALL TESTS</a>
+    <a href="runtests.php?engine=mbstring">[mbstring]</a>
+    <a href="runtests.php?engine=native">[native]</a>
+</li>
+</ul>
+<ul>
+<?php
+    $path = dirname(__FILE__).'/cases';
+    if ( $d = opendir($path) ) {
+        while (($file = readdir($d)) !== false) {
+            if ( is_file($path.'/'.$file) ) {
+                $farray = explode('.',$file);
+                if ( $farray[1] == 'test' ) {
+?>
+<li>
+    <a href="./cases/<?php echo htmlspecialchars($file); ?>"><?php echo htmlspecialchars($file); ?></a>
+    <a href="./cases/<?php echo htmlspecialchars($file); ?>?engine=mbstring">[mbstring]</a>
+    <a href="./cases/<?php echo htmlspecialchars($file); ?>?engine=native">[native]</a>
+    </li>
+<?php
+                }
+            }
+        }
+        closedir($d);
+    }
+?>
+</ul>
+</body>
+</html>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?