function it_does_not_score_array_if_key_and_value_tokens_do_not_score_same_entry($key, $value) { $argument = array(1 => 'foo', 2 => 'bar'); $key->scoreArgument(1)->willReturn(true); $key->scoreArgument(2)->willReturn(false); $value->scoreArgument('foo')->willReturn(false); $value->scoreArgument('bar')->willReturn(true); $this->scoreArgument($argument)->shouldBe(false); }