You are here

public function FileCacheTest::testFileExtensionSlashCorrectlyEscaped in Plug 7

@group DCOM-266

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/FileCacheTest.php, line 145

Class

FileCacheTest
@group DCOM-101

Namespace

Doctrine\Tests\Common\Cache

Code

public function testFileExtensionSlashCorrectlyEscaped() {
  $driver = $this
    ->getMock('Doctrine\\Common\\Cache\\FileCache', array(
    'doFetch',
    'doContains',
    'doSave',
  ), array(
    __DIR__ . '/../',
    '/' . basename(__FILE__),
  ));
  $doGetStats = new \ReflectionMethod($driver, 'doGetStats');
  $doGetStats
    ->setAccessible(true);
  $stats = $doGetStats
    ->invoke($driver);
  $this
    ->assertGreaterThan(0, $stats[Cache::STATS_MEMORY_USAGE]);
}