mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 08:17:18 +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;
|
|
}
|
|
|
|
}
|