public function decorate(call $call) { $string = ''; $function = $call->getFunction(); if ($function !== null) { $string = $function . '('; $arguments = $call->getArguments(); if ($arguments === null) { $string .= '*'; } else { $string .= $this->argumentsDecorator->decorate($call->getArguments()); } $string .= ')'; } return $string; }
public function testUnsetArguments() { $this->if($call = new testedClass())->then->object($call->unsetArguments())->isIdenticalTo($call)->variable($call->getArguments())->isNull()->if($call->setArguments(array()))->then->object($call->unsetArguments())->isIdenticalTo($call)->variable($call->getArguments())->isNull(); }