public function testCanRegisterDependantModules() { Module::clearModules(); Module::registerModule(new TestModule4()); $modules = Module::getAllModules(); $this->assertArrayHasKey("Rhubarb\\Crown\\Tests\\TestModule5", $modules); $this->assertArrayHasKey("Rhubarb\\Crown\\Tests\\TestModule4", $modules); $values = array_values($modules); // Make sure the order is right too! $this->assertInstanceOf("Rhubarb\\Crown\\Tests\\TestModule5", $values[0]); $this->assertInstanceOf("Rhubarb\\Crown\\Tests\\TestModule4", $values[1]); }
public static function tearDownAfterClass() { Module::clearModules(); parent::tearDownAfterClass(); }