diff --git a/README.md b/README.md index e9a114ec2..a8eff45b9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# phpunit +# e107 Phpunit Tests For developmental use with e107 v2. + +- Set Custom Working Directory for PHPUNit Test to e107's root. diff --git a/includes/bootstrap.php b/includes/bootstrap.php new file mode 100644 index 000000000..bc5b7c1fe --- /dev/null +++ b/includes/bootstrap.php @@ -0,0 +1,27 @@ + + + + + + tests + + + + + + \ No newline at end of file diff --git a/tests/unit/ConstantsTest.php b/tests/unit/ConstantsTest.php new file mode 100644 index 000000000..2e5d92831 --- /dev/null +++ b/tests/unit/ConstantsTest.php @@ -0,0 +1,21 @@ +assertTrue($res); + } + } diff --git a/tests/unit/PathsTest.php b/tests/unit/PathsTest.php new file mode 100644 index 000000000..645e36f7b --- /dev/null +++ b/tests/unit/PathsTest.php @@ -0,0 +1,22 @@ +assertTrue($res); + + } + } diff --git a/tests/unit/XMLParseTest.php b/tests/unit/XMLParseTest.php new file mode 100644 index 000000000..30af49eda --- /dev/null +++ b/tests/unit/XMLParseTest.php @@ -0,0 +1,22 @@ +e107Import($config, 'replace', true, true); // Add core pref values + + $this->assertTrue(true); + } + }