public function FileCacheTest::testInvalidFilename 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::testInvalidFilename()
@dataProvider getProviderFileName
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ FileCacheTest.php, line 49
Class
- FileCacheTest
- @group DCOM-101
Namespace
Doctrine\Tests\Common\CacheCode
public function testInvalidFilename($key, $expected) {
$cache = $this->driver;
$method = new \ReflectionMethod($cache, 'getFilename');
$method
->setAccessible(true);
$value = $method
->invoke($cache, $key);
$actual = pathinfo($value, PATHINFO_FILENAME);
$this
->assertEquals($expected, $actual);
}