コード例 #1
0
ファイル: RegistryTest.php プロジェクト: evaneos/dic-it
 public function testFlushClearsRegistry()
 {
     $registry = new Registry();
     $value = 'value';
     $registry->set('key', $value);
     $registry->flush();
     $this->assertNull($registry->get('key', false));
 }
コード例 #2
0
ファイル: Container.php プロジェクト: oliviermadre/dic-it
 /**
  * Flush the registry
  * @return Container
  */
 public function flushRegistry()
 {
     $this->registry->flush();
     return $this;
 }