12345678910111213141516171819202122232425262728293031323334353637 |
- <?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 Stash\Test\Driver;
- /**
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- */
- class ApcTest extends AbstractDriverTest
- {
- protected $driverClass = '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();
- }
- }
|