Skip to content

Commit

Permalink
Merge pull request #516 from butane/session-test1
Browse files Browse the repository at this point in the history
Adds test for session set magic method
  • Loading branch information
lonnieezell authored May 23, 2017
2 parents 035d618 + 4fec952 commit 31748eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/system/Session/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ public function testHasReturnsCanRemoveArray()
$this->assertFalse(isset($_SESSION['bar']));
}

public function testSetMagicMethod()
{
$session = $this->getInstance();
$session->start();

$session->foo = 'bar';

$this->assertTrue(isset($_SESSION['foo']));
$this->assertEquals('bar', $_SESSION['foo']);
}

public function testCanFlashData()
{
$session = $this->getInstance();
Expand Down

0 comments on commit 31748eb

Please sign in to comment.