Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function get($id)
 {
     if (!isset($this->services[$id])) {
         $message = sprintf('Entry (%s) is not defined', VarPrinter::toString($id));
         throw EntryNotFoundException::create($message);
     }
     return $this->services[$id]($this);
 }
 public function test_that_create_returns_exception_instance()
 {
     $exception = EntryNotFoundException::create('Entry not found');
     $this->assertInstanceOf('Novuso\\Common\\Application\\Container\\Exception\\EntryNotFoundException', $exception);
 }