Example #1
0
 public function testFreeze2()
 {
     $this->object[0];
     // init
     $this->object->freeze();
     $this->assertTrue($this->object[0]->isFrozen());
 }
Example #2
0
 public static function setUpBeforeClass()
 {
     static::$collection = new Collection();
     static::$collection->append('part1', ['item1' => 'stuff']);
     static::$collection->freeze('*');
     static::assertTrue(static::$collection->immutable('part1'));
     static::$collection->thaw('*');
     static::assertFalse(static::$collection->immutable('part1'));
 }