You are here

function MethodNodeSpec::it_supports_adding_arguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/MethodNodeSpec.php \spec\Prophecy\Doubler\Generator\Node\MethodNodeSpec::it_supports_adding_arguments()

Parameters

\Prophecy\Doubler\Generator\Node\ArgumentNode $argument1:

\Prophecy\Doubler\Generator\Node\ArgumentNode $argument2:

File

vendor/phpspec/prophecy/spec/Prophecy/Doubler/Generator/Node/MethodNodeSpec.php, line 116

Class

MethodNodeSpec

Namespace

spec\Prophecy\Doubler\Generator\Node

Code

function it_supports_adding_arguments($argument1, $argument2) {
  $this
    ->addArgument($argument1);
  $this
    ->addArgument($argument2);
  $this
    ->getArguments()
    ->shouldReturn(array(
    $argument1,
    $argument2,
  ));
}