1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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 SqlitePdoSqlite3Test extends AbstractDriverTest
- {
- protected $driverClass = 'Stash\Driver\Sqlite';
- protected $subDriverClass = 'Stash\Driver\Sub\SqlitePdo';
- protected $persistence = true;
- protected function setUp()
- {
- $driver = '\\' . $this->driverClass;
- $subDriver = '\\' . $this->subDriverClass;
- if (!$driver::isAvailable() || !$subDriver::isAvailable()) {
- $this->markTestSkipped('Driver class unsuited for current environment');
- return;
- }
- parent::setUp();
- }
- public function getOptions()
- {
- $options = parent::getOptions();
- $options['extension'] = 'pdo';
- $options['nesting'] = 2;
- return $options;
- }
- }
|