Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 2158 / Issue2158Test.php
1 <?php
2 class Issue2158Test extends PHPUnit_Framework_TestCase
3 {
4     /**
5      * Set constant in main process
6      */
7     public function testSomething()
8     {
9         include(__DIR__ . '/constant.inc');
10         $this->assertTrue(true);
11     }
12
13     /**
14      * Constant defined previously in main process constant should be available and
15      * no errors should be yielded by reload of included files
16      *
17      * @runInSeparateProcess
18      */
19     public function testSomethingElse()
20     {
21         $this->assertTrue(defined('TEST_CONSTANT'));
22     }
23 }