Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 2158 / Issue2158Test.php
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php b/vendor/phpunit/phpunit/tests/Regression/GitHub/2158/Issue2158Test.php
new file mode 100644 (file)
index 0000000..014aa4f
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+class Issue2158Test extends PHPUnit_Framework_TestCase
+{
+    /**
+     * Set constant in main process
+     */
+    public function testSomething()
+    {
+        include(__DIR__ . '/constant.inc');
+        $this->assertTrue(true);
+    }
+
+    /**
+     * Constant defined previously in main process constant should be available and
+     * no errors should be yielded by reload of included files
+     *
+     * @runInSeparateProcess
+     */
+    public function testSomethingElse()
+    {
+        $this->assertTrue(defined('TEST_CONSTANT'));
+    }
+}