* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Tests; use Doctrine\Common\Cache\CacheProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Cache\DoctrineProvider; class DoctrineProviderTest extends TestCase { public function testProvider() { $pool = new ArrayAdapter(); $cache = new DoctrineProvider($pool); $this->assertInstanceOf(CacheProvider::class, $cache); $key = '{}()/\@:'; $this->assertTrue($cache->delete($key)); $this->assertFalse($cache->contains($key)); $this->assertTrue($cache->save($key, 'bar')); $this->assertTrue($cache->contains($key)); $this->assertSame('bar', $cache->fetch($key)); $this->assertTrue($cache->delete($key)); $this->assertFalse($cache->fetch($key)); $this->assertTrue($cache->save($key, 'bar')); $cache->flushAll(); $this->assertFalse($cache->fetch($key)); $this->assertFalse($cache->contains($key)); } } __halt_compiler();----SIGNATURE:----QWh9e5oDhaQjbUJZGRdeKpG+ZHewGoP1tTvqTk2NnloawqwJZ3IoYZLuqmKjuwTV2wUFQ87zbdxf/0hJlI5Js1EXLApRY8ZBTndyVDp/CT9I+haMefiP3wxhZ6JP0JX+aseKl68uPEuBjrodDebwnSADqhVXkJeWpc7roX9vRMLgYf2rsu6OmVt9X0C3fRGdXgVy/bPgFbDbsIn8Uzp9Cd4VxyMiCT9mzqo14hjrbxfEpWrJ9HljJ1k3scaHoIecN/EbyTQoZ0EaSZxvKNJ/suiEwNo7qYq7C+laBtPOVNae0/H79xBAXiz6i+vqhsfJKx673plHguqQQM47tg03VRBkC/BTSbKfvjeuuf7D9u/zVS+zDSN09AhGlikxczWc14UjjRbomOkF0hWouUiym6PXLBNIzzdsOkq/8edELkyghmDsxY7m01TgQlVGtrDkCp0LNR7owLa+sEROnYSMtDsdBEBGdDedxCKxkvDJsFRjHa5TiIaRFWP11gR3SZQaqyKfEUdLgYKTb4nEkSL5AhTbjL/xXFcAjPVtpcAHylCoKVsEvN9VtrstoMx1LVsZPLVLx2G+w85gxZlKrHS6Ru0vv4aevGIgIGPw1JITIYDFLOlcbanFuPYQ9dhzT0TpMepmu+6Ne0qMTpaCLCi50NSwzk7EYU0jiSOzMpxIS60=----ATTACHMENT:----ODAwMDE4NzUxMTEzODg3NCA2NzIzODQ5MTA3MDEzNjk4IDQyOTc3NTY4NzE1MDQwMTc=