cakephp2-php8/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php

35 lines
515 B
PHP
Raw Normal View History

2010-07-25 23:20:17 +00:00
<?php
/**
2011-06-20 00:28:40 +00:00
* Test suite app/Model/Datasource/Session session handler
2010-07-25 23:20:17 +00:00
*/
2012-01-12 17:01:27 +00:00
App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session');
2010-07-25 23:20:17 +00:00
class TestAppLibSession implements CakeSessionHandlerInterface {
public function open() {
2010-07-25 23:20:17 +00:00
return true;
}
public function close() {
return true;
2010-07-25 23:20:17 +00:00
}
public function read($id) {
return '';
2010-07-25 23:20:17 +00:00
}
public function write($id, $data) {
return true;
2010-07-25 23:20:17 +00:00
}
public function destroy($id) {
return true;
2010-07-25 23:20:17 +00:00
}
public function gc($expires = null) {
return true;
2010-07-25 23:20:17 +00:00
}
2012-03-18 03:53:13 +00:00
}