Ejemplo n.º 1
0
 public function testFlushClearsRegistry()
 {
     $registry = new Registry();
     $value = 'value';
     $registry->set('key', $value);
     $registry->flush();
     $this->assertNull($registry->get('key', false));
 }
Ejemplo n.º 2
0
 /**
  * Flush the registry
  * @return Container
  */
 public function flushRegistry()
 {
     $this->registry->flush();
     return $this;
 }