/**
  * Testing abstract method injection with parameters
  */
 public function testAbstractClassWithParameters()
 {
     $services = ['static' => ['class' => 'Evista\\ComPress\\Service\\TestStaticService', 'method' => 'init', 'arguments' => ["String", 12, 6.78]]];
     $depIn = new DependencyInjector($services);
     $this->assertInstanceOf('\\StdClass', $depIn->get('static'));
 }
Example #2
0
 public function inject($closure, $scope = null)
 {
     return parent::inject($closure, $this->_scope);
 }