__toString() public method

public __toString ( ) : string
return string
 public function testReadAccessorsReturnPropertiesValues()
 {
     $caller = new InstantiatedReference('user.factory');
     $method = 'setUsername';
     $arguments = [new \stdClass()];
     $definition = new MethodCallWithReference($caller, $method, $arguments);
     $this->assertEquals($caller, $definition->getCaller());
     $this->assertEquals($method, $definition->getMethod());
     $this->assertEquals($arguments, $definition->getArguments());
     $this->assertEquals('user.factorysetUsername', $definition->__toString());
     $definition = new MethodCallWithReference($caller, $method, null);
     $this->assertEquals($caller, $definition->getCaller());
     $this->assertEquals($method, $definition->getMethod());
     $this->assertNull($definition->getArguments());
     $this->assertEquals('user.factorysetUsername', $definition->__toString());
 }