/** * @test */ public function get_successWithCache() { $this->context->setCache(true); $compiler = $this->stubCompiler('css'); $result = $this->target->get('asset/test.css'); $this->assertInstanceOf(CachedProcessor::class, $result); $this->assertSame($compiler, $result->getProcessor()); }
/** * @test */ public function execute_successWithCaching() { $this->context->setCache(true); $this->cache->set(new FileList(), 'cached'); $iterator = $this->createGroupList('success', 'group-name'); $this->assertSame($this->target, $this->target->addGroups($iterator)); $this->assertEquals('cached', $this->target->execute('group-name')); }