public function testMarkingOneSessionObjectImmutableShouldMarkOtherInstancesImmutable() { $this->storage->foo = 'bar'; $storage = new SessionArrayStorage(); $this->assertEquals('bar', $storage['foo']); $this->storage->markImmutable(); $this->assertTrue($storage->isImmutable(), var_export($_SESSION, 1)); }