Exemplo n.º 1
0
 public function testNewClass()
 {
     $this->assertEquals('New_Class', $this->item->newClass());
 }
Exemplo n.º 2
0
 /**
  * Finds the dependency, new class or pulls from container, based
  * on item.
  *
  * @param Pd_Map_Item $item
  * @return mixed dependency
  */
 protected function getDependencyForItem($item)
 {
     if ($item->newClass()) {
         $dependency = Pd_Make::name($item->newClass(), $this->_container->name());
     } else {
         $dependency = $this->_container->dependencies()->get($item->dependencyName());
     }
     return $dependency;
 }