2 class Issue2158Test extends PHPUnit_Framework_TestCase
5 * Set constant in main process
7 public function testSomething()
9 include(__DIR__ . '/constant.inc');
10 $this->assertTrue(true);
14 * Constant defined previously in main process constant should be available and
15 * no errors should be yielded by reload of included files
17 * @runInSeparateProcess
19 public function testSomethingElse()
21 $this->assertTrue(defined('TEST_CONSTANT'));