Exemplo n.º 1
0
 public function testGetSetIssetRemove()
 {
     $c = new ServiceContainer();
     $this->assertFalse($c->has('some1'));
     $c->set('some1', 'value1');
     $this->assertTrue($c->has('some1'));
     $this->assertEquals('value1', $c->get('some1'));
     $c->remove('some1');
     $this->assertFalse($c->has('some1'));
 }