-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
77 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* | ||
* * This is an iumio Framework component | ||
* * | ||
* * (c) RAFINA DANY <[email protected]> | ||
* * | ||
* * iumio Framework, an iumio component [https://iumio.com] | ||
* * | ||
* * To get more information about licence, please check the licence file | ||
* | ||
*/ | ||
|
||
|
||
namespace iumioFramework\Tests; | ||
|
||
use iumioFramework\Core\Base\Http\HttpSession; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
/** | ||
* Class ServerTest | ||
* @package iumioFramework\Tests | ||
*/ | ||
class HttpSessionTest extends TestCase | ||
{ | ||
/** | ||
* Test create an instance of HttpSession | ||
* @throws \Exception | ||
*/ | ||
public function testCreateInstance() | ||
{ | ||
$instance = HttpSession::getInstance(); | ||
$instance->set("test", "value1"); | ||
$instance->save(); | ||
$this->assertInstanceOf("iumioFramework\Core\Base\Http\HttpSession", $instance); | ||
$this->assertTrue(isset($_SESSION["test"])); | ||
$this->assertEquals($_SESSION["test"], "value1"); | ||
} | ||
} |