removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / scripts / tokenizer_test.php
diff --git a/mods/phpdoc2/PhpDocumentor/scripts/tokenizer_test.php b/mods/phpdoc2/PhpDocumentor/scripts/tokenizer_test.php
deleted file mode 100644 (file)
index 2b5ca25..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php\r
-/**\r
- * @package tests\r
- */\r
-/**\r
-$fp = fopen("../phpDocumentor/Converter.inc","r");\r
-$file = fread($fp,filesize("../phpDocumentor/Converter.inc"));\r
-fclose($fp);\r
-*/\r
-$file = "\r
-<?php\r
-    function &newSmarty()\r
-    {\r
-        if (!isset(\$this->package_index))\r
-        foreach(\$this->all_packages as \$key => \$val)\r
-        {\r
-            if (isset(\$this->pkg_elements[\$key]))\r
-            {\r
-                if (!isset(\$start)) \$start = \$key;\r
-                \$this->package_index[] = array('link' => \"li_\$key.html\", 'title' => \$key);\r
-            }\r
-        }\r
-        \$templ = new Smarty;\r
-        \$templ->template_dir = \$this->smarty_dir . PATH_DELIMITER . 'templates';\r
-        \$templ->compile_dir = \$this->smarty_dir . PATH_DELIMITER . 'templates_c';\r
-        \$templ->config_dir = \$this->smarty_dir . PATH_DELIMITER . 'configs';\r
-        \$templ->assign(\"packageindex\",\$this->package_index);\r
-        \$templ->assign(\"phpdocversion\",PHPDOCUMENTOR_VER);\r
-        \$templ->assign(\"phpdocwebsite\",PHPDOCUMENTOR_WEBSITE);\r
-        \$templ->assign(\"package\",\$this->package);\r
-        \$templ->assign(\"subdir\",'');\r
-        return \$templ;\r
-    }\r
-?>\r
-";\r
-$tokens = token_get_all($file);\r
-\r
-$nl_check = array(T_WHITESPACE,T_ENCAPSED_AND_WHITESPACE,T_COMMENT,T_DOC_COMMENT,T_OPEN_TAG,T_CLOSE_TAG,T_INLINE_HTML);\r
-print '<pre>';\r
-$line = 0;\r
-foreach($tokens as $key => $val)\r
-{\r
-       if (is_array($val))\r
-       {\r
-               // seeing if we can get line numbers out of the beast\r
-               if (in_array($val[0],$nl_check))\r
-               {\r
-                       $line+=substr_count($val[1],"\n");\r
-               }\r
-               echo token_name($val[0])." => ".htmlentities($val[1])."\n";\r
-       }\r
-       else\r
-       {\r
-               echo "*** $val\n";\r
-       }\r
-}\r
-echo "$line\n";\r
-print '</pre>';\r
-?>\r