mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-24 15:57:19 +00:00
34 lines
515 B
PHP
34 lines
515 B
PHP
<?php
|
|
/**
|
|
* Test suite app/Model/Datasource/Session session handler
|
|
*/
|
|
|
|
App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session');
|
|
|
|
class TestAppLibSession implements CakeSessionHandlerInterface {
|
|
|
|
public function open() {
|
|
return true;
|
|
}
|
|
|
|
public function close() {
|
|
return true;
|
|
}
|
|
|
|
public function read($id) {
|
|
return '';
|
|
}
|
|
|
|
public function write($id, $data) {
|
|
return true;
|
|
}
|
|
|
|
public function destroy($id) {
|
|
return true;
|
|
}
|
|
|
|
public function gc($expires = null) {
|
|
return true;
|
|
}
|
|
|
|
}
|