/** * Tests the hasCore and removeCore methods */ public function testHasCoreAndRemoveCore() { // assert that the Facade.hasCore method returns false first $this->assertTrue(Facade::hasCore('FacadeTestKey11') == false, "Expecting Facade::hasCore('FacadeTestKey11') == false"); // register a Core $facade = Facade::getInstance('FacadeTestKey11'); // assert that the Facade.hasCore method returns true now that a Core is registered $this->assertTrue(Facade::hasCore('FacadeTestKey11') == true, "Expecting Facade::hasCore('FacadeTestKey11') == true"); // remove the Core Facade::removeCore('FacadeTestKey11'); // assert that the Facade.hasCore method returns false now that the core has been removed. $this->assertTrue(Facade::hasCore('FacadeTestKey11') == false, "Expecting Facade::hasCore('FacadeTestKey11') == false"); }