Odyssey
SanityTest.php
1 <?php
2 
3 use PHPUnit\Framework\TestCase;
4 
5 class HarnessTest extends TestCase {
6 
7  public function test_harness_is_in_place() {
8  $this->assertTrue(TRUE);
9  }
10 
11  public function test_side_effect_isolation_1_of_2() {
12  $GLOBALS['foo'] = 1234;
13  }
14 
15  /*
16  * @depends test_side_effiect_isolation_1_of_2
17  */
18  public function test_side_effect_isolation_2_of_2() {
19  $this->assertArrayNotHasKey('foo', $GLOBALS);
20  }
21 }
22 
23 ?>