public testClear ( ) |
public function testClear()
{
$_SESSION['foo'] = 'bar';
$this->assertNotEmpty($_SESSION);
$closure = $this->php->clear();
$this->assertInternalType('callable', $closure);
$result = $closure($this->php, array(), null);
$this->assertEmpty($_SESSION);
}