public function testNamespaceIsCacheable() { $options = new CacheOptions(); $cacheManger = new CacheManager($options); $this->assertFalse($cacheManger->isCacheable('hello')); $options->setEnabled(true); $this->assertTrue($cacheManger->isCacheable('hello')); $options->setNamespaces(['stuff']); $this->assertTrue($cacheManger->isCacheable('stuff')); $this->assertFalse($cacheManger->isCacheable('another_stuff')); }