D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
modules
/
catalog
/
vendor
/
tedivm
/
stash
/
tests
/
Stash
/
Test
/
Driver
/
Filename :
ApcTest.php
back
Copy
<?php /* * This file is part of the Stash package. * * (c) Robert Hafner <tedivm@tedivm.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PleskCatalog\Stash\Test\Driver; /** * @package Stash * @author Robert Hafner <tedivm@tedivm.com> */ class ApcTest extends AbstractDriverTestCase { protected $driverClass = 'PleskCatalog\\Stash\\Driver\\Apc'; protected $persistence = \true; public function testSetOptions() { $driverType = $this->driverClass; $options = $this->getOptions(); $options['namespace'] = 'namespace_test'; $options['ttl'] = 15; $driver = new $driverType($options); $this->assertAttributeEquals('namespace_test', 'apcNamespace', $driver, 'APC is setting supplied namespace.'); $this->assertAttributeEquals(15, 'ttl', $driver, 'APC is setting supplied ttl.'); return parent::testSetOptions(); } }