public function test_can_add_namespace() { $this->chain->addNamespace('NewNamespace'); $this->chain->addNamespace('NewNamespace2'); $this->chain->addNamespace('NewNamespace3'); $this->assertArrayHasKey('Namespace', $this->chain->getDrivers()); $this->assertArrayHasKey('NewNamespace', $this->chain->getDrivers()); $this->assertArrayHasKey('NewNamespace2', $this->chain->getDrivers()); $this->assertArrayHasKey('NewNamespace3', $this->chain->getDrivers()); $this->assertArrayNotHasKey('NonExisting', $this->chain->getDrivers()); }