diff --git a/tests/system/Session/SessionTest.php b/tests/system/Session/SessionTest.php index c06d123a7e3e..50fda44a04b7 100644 --- a/tests/system/Session/SessionTest.php +++ b/tests/system/Session/SessionTest.php @@ -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();