public function testCore() { $this->assertTrue(ClassMap::has("NotLoaded", "oneMethod"), "ClassMap has"); @unlink(ClassMap::$file); @unlink(ClassMap::$ace); $_SERVER['REQUEST_URI'] = ""; $_SERVER['argv'][1] = "test"; @($core = new Core(true)); $_SERVER['REQUEST_URI'] = "/test/something/?arg=1"; @($core = new Core(true)); $this->assertFileExists(ClassMap::$file, "New classmap"); $this->assertNotEmpty($core->base, "Base"); $this->assertNotEmpty($core->url, "Url"); $this->assertEquals(Core::$core->output, $core->output, "Output"); $this->assertGreaterThan(Core::$core->now, Core::started(), "Started"); $this->assertNotEmpty(ClassMap::ace(), "ClassMap access control entries"); }