SqlitePdoSqlite3Test.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. * This file is part of the Stash package.
  4. *
  5. * (c) Robert Hafner <tedivm@tedivm.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Stash\Test\Driver;
  11. /**
  12. * @package Stash
  13. * @author Robert Hafner <tedivm@tedivm.com>
  14. */
  15. class SqlitePdoSqlite3Test extends AbstractDriverTest
  16. {
  17. protected $driverClass = 'Stash\Driver\Sqlite';
  18. protected $subDriverClass = 'Stash\Driver\Sub\SqlitePdo';
  19. protected $persistence = true;
  20. protected function setUp()
  21. {
  22. $driver = '\\' . $this->driverClass;
  23. $subDriver = '\\' . $this->subDriverClass;
  24. if (!$driver::isAvailable() || !$subDriver::isAvailable()) {
  25. $this->markTestSkipped('Driver class unsuited for current environment');
  26. return;
  27. }
  28. parent::setUp();
  29. }
  30. public function getOptions()
  31. {
  32. $options = parent::getOptions();
  33. $options['extension'] = 'pdo';
  34. $options['nesting'] = 2;
  35. return $options;
  36. }
  37. }