function testCanIncludeOnceKnownSafe() { $v = PSU::safe_include($this->safe_include_dir, $this->safe_include_file, PSU::I_INCLUDE_ONCE); $this->assertSame($v, 1337); $this->assertSame($GLOBALS['dummyfile_was_included'], 1); $v = PSU::safe_include($this->safe_include_dir, $this->safe_include_file, PSU::I_INCLUDE_ONCE); $this->assertSame($v, true); $this->assertSame($GLOBALS['dummyfile_was_included'], 1); }