Skip to content

Commit

Permalink
Remove Doctrine Cache (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Feb 5, 2024
1 parent 31702be commit af69cfb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
},
"require-dev": {
"doctrine/annotations": "^1.14",
"doctrine/cache": "^1.11",
"doctrine/coding-standard": "^9.0.2 || ^12.0",
"nesbot/carbon": "*",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"squizlabs/php_codesniffer": "^3.8",
"symfony/yaml": "^4.4 || ^5.3 || ^6.0",
"symfony/cache": "^4.4 || ^5.4 || ^6.4 || ^7.0",
"symfony/yaml": "^4.4 || ^5.3 || ^6.0 || ^7.0",
"zf1/zend-date": "^1.12",
"zf1/zend-registry": "^1.12"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/Query/DbTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace DoctrineExtensions\Tests\Query;

use Doctrine\Common\Cache\ArrayCache;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter;

class DbTestCase extends TestCase
{
Expand All @@ -18,8 +18,8 @@ class DbTestCase extends TestCase
public function setUp(): void
{
$this->configuration = new Configuration();
$this->configuration->setMetadataCacheImpl(new ArrayCache());
$this->configuration->setQueryCacheImpl(new ArrayCache());
$this->configuration->setMetadataCache(new ArrayAdapter());
$this->configuration->setQueryCache(new ArrayAdapter());
$this->configuration->setProxyDir(__DIR__ . '/Proxies');
$this->configuration->setProxyNamespace('DoctrineExtensions\Tests\Proxies');
$this->configuration->setAutoGenerateProxyClasses(true);
Expand Down
6 changes: 3 additions & 3 deletions tests/Types/CarbonDateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

use Carbon\Carbon;
use Carbon\CarbonImmutable;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\SchemaTool;
use DoctrineExtensions\Tests\Entities\CarbonDate as Entity;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter;

use function assert;

Expand Down Expand Up @@ -39,8 +39,8 @@ public static function setUpBeforeClass(): void
public function setUp(): void
{
$config = new Configuration();
$config->setMetadataCacheImpl(new ArrayCache());
$config->setQueryCacheImpl(new ArrayCache());
$config->setMetadataCache(new ArrayAdapter());
$config->setQueryCache(new ArrayAdapter());
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('DoctrineExtensions\Tests\PHPUnit\Proxies');
$config->setAutoGenerateProxyClasses(true);
Expand Down
6 changes: 3 additions & 3 deletions tests/Types/ZendDateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace DoctrineExtensions\Tests\Types;

use Doctrine\Common\Cache\ArrayCache;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\SchemaTool;
use DoctrineExtensions\Tests\Entities\ZendDate;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Zend_Date;

use function assert;
Expand All @@ -34,8 +34,8 @@ public static function setUpBeforeClass(): void
public function setUp(): void
{
$config = new Configuration();
$config->setMetadataCacheImpl(new ArrayCache());
$config->setQueryCacheImpl(new ArrayCache());
$config->setMetadataCache(new ArrayAdapter());
$config->setQueryCache(new ArrayAdapter());
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('DoctrineExtensions\Tests\PHPUnit\Proxies');
$config->setAutoGenerateProxyClasses(true);
Expand Down

0 comments on commit af69cfb

Please sign in to comment.