mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Converting CAkeSessionTest to phpunit
This commit is contained in:
parent
6613cfb662
commit
72959e7872
1 changed files with 4 additions and 4 deletions
|
@ -222,7 +222,7 @@ class CakeSessionTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->Session->write('Watching', "I'm watching you");
|
$this->Session->write('Watching', "I'm watching you");
|
||||||
$this->Session->watch('Watching');
|
$this->Session->watch('Watching');
|
||||||
$this->expectError('Writing session key {Watching}: "They found us!"');
|
$this->expectError();
|
||||||
$this->Session->write('Watching', 'They found us!');
|
$this->Session->write('Watching', 'They found us!');
|
||||||
|
|
||||||
$this->expectError('Deleting session key {Watching}');
|
$this->expectError('Deleting session key {Watching}');
|
||||||
|
@ -386,7 +386,7 @@ class CakeSessionTest extends CakeTestCase {
|
||||||
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');
|
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');
|
||||||
|
|
||||||
$this->Session->destroy();
|
$this->Session->destroy();
|
||||||
$this->assertFalse($this->Session->read('SessionTestCase'));
|
$this->assertNull($this->Session->read('SessionTestCase'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -423,7 +423,7 @@ class CakeSessionTest extends CakeTestCase {
|
||||||
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');
|
$this->assertEqual($this->Session->read('SessionTestCase'), 'This was updated');
|
||||||
|
|
||||||
$this->Session->destroy();
|
$this->Session->destroy();
|
||||||
$this->assertFalse($this->Session->read('SessionTestCase'));
|
$this->assertNull($this->Session->read('SessionTestCase'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -461,7 +461,7 @@ class CakeSessionTest extends CakeTestCase {
|
||||||
$this->assertEqual($this->Session->read('SessionTestCase'), 'Some additional data');
|
$this->assertEqual($this->Session->read('SessionTestCase'), 'Some additional data');
|
||||||
|
|
||||||
$this->Session->destroy();
|
$this->Session->destroy();
|
||||||
$this->assertFalse($this->Session->read('SessionTestCase'));
|
$this->assertNull($this->Session->read('SessionTestCase'));
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
unset($_SESSION);
|
unset($_SESSION);
|
||||||
|
|
Loading…
Add table
Reference in a new issue