Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
mfa
/
vendor
/
tedivm
/
stash
/
tests
/
Stash
/
Test
/
Stubs
/
File Content:
DriverCallCheckStub.php
<?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\Stubs; use Stash; use Stash\Driver\AbstractDriver; /** * DriverExceptionStub is used for testing how Stash reacts to thrown errors. Every function but the constructor throws * an exception. * * @package Stash * @author Robert Hafner <tedivm@tedivm.com> * * @codeCoverageIgnore */ class DriverCallCheckStub extends AbstractDriver { protected $store = array(); protected $wasCalled = false; public function getData($key) { $this->wasCalled = true; } protected function getKeyIndex($key) { $this->wasCalled = true; } public function storeData($key, $data, $expiration) { $this->wasCalled = true; } public function clear($key = null) { $this->wasCalled = true; } public function purge() { $this->wasCalled = true; } public function wasCalled() { return $this->wasCalled; } public function canEnable() { return (defined('TESTING') && TESTING); } public static function isAvailable() { return (defined('TESTING') && TESTING); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
DriverCallCheckStub.php
1364 bytes
0644
DriverExceptionStub.php
1532 bytes
0644
DriverUnavailableStub.php
1482 bytes
0644
LoggerStub.php
1819 bytes
0644
PoolGetDriverStub.php
2049 bytes
0644
N4ST4R_ID | Naxtarrr