public function testConstruct()
 {
     $methodName = 'methodName';
     $call = new DependencyCall($methodName);
     $this->assertEquals($methodName, $call->getMethodName());
     $arguments = $call->getArguments();
     $this->assertNull($arguments);
 }
Esempio n. 2
0
 /**
  * Adds a call to this dependency.
  * @param DependencyCall $call The call to add
  * @return
  */
 public function addCall(DependencyCall $call)
 {
     if ($call->getMethodName() == '__construct') {
         $this->constructorArguments = $call->getArguments();
         return;
     }
     $this->calls[] = $call;
 }