public function FileCacheTest::testInvalidFilename in Plug 7
@dataProvider getProviderFileName
File
- lib/
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);
}