Пример #1
0
 public function testWithoutValue()
 {
     $this->assertArrayHasKey('one', $this->struct);
     $copy = $this->struct->withoutValue('one');
     $this->assertNotSame($this->struct, $copy);
     $this->assertArrayNotHasKey('one', $copy);
     // Removing the a non-exisistant value should not copy
     $another = $copy->withoutValue('one');
     $this->assertSame($copy, $another);
 }