index 6101c399f63801216f2d2861c1731c1431a88be5..c023fd69ce70ef93f135b19abe680f44ef57cb52 100755 (executable)
--- a/test
+++ b/test
#!/usr/bin/php
+
<?php
+
/* This is good for testing... */
error_reporting (E_ALL | E_STRICT);
+/* Escape all preg_* relevant characters */
+function normalizePreg($input)
+{
+ return (addcslashes($input, '[]()|/.*+-'));
+}
+
+
+
/* Initiate autoloader... */
require_once("include/autoload.inc");
-
+restore_error_handler();
try {
/* Get new test instance of the Configuration */
$cr->load("gosa.conf");
/* Get a new test instance of ObjectListViewports */
- $vp= new ObjectListViewport(array("dummy", "dummy"));
+ $vp= new ObjectListViewport("plugin/sample");
echo $vp->render();
} catch (Exception $e) {