public function FileCacheTest::testFileExtensionSlashCorrectlyEscaped in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/FileCacheTest.php \Doctrine\Tests\Common\Cache\FileCacheTest::testFileExtensionSlashCorrectlyEscaped()
@group DCOM-266
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ FileCacheTest.php, line 145
Class
- FileCacheTest
- @group DCOM-101
Namespace
Doctrine\Tests\Common\CacheCode
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]);
}