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