コード例 #1
0
 public function testHasGetSetRemove()
 {
     $this->assertFalse($this->result->has('foo'));
     $this->assertNull($this->result->get('foo'));
     $this->result->set('foo', 'bar');
     $this->assertTrue($this->result->has('foo'));
     $this->assertEquals('bar', $this->result->get('foo'));
     $this->result->remove('foo');
     $this->assertFalse($this->result->has('foo'));
     $this->assertNull($this->result->get('foo'));
 }