Пример #1
0
 public function testBuildCache()
 {
     $finder = new Finder();
     $finder->registerReader(new RawContentReader());
     $cache = $this->getMockBuilder(ArrayAdapter::class)->setMethods(['saveDeferred'])->getMock();
     $finder->registerCache($cache);
     $cache->expects($this->exactly(3))->method('saveDeferred');
     $finder->createQuery()->useLanguage(new French())->searchFor('test')->inDirectory($this->getInvoiceDirectory())->buildCache();
 }