function it_scores_avg_of_scores_from_value_tokens($value) { $value->scoreArgument('value1')->willReturn(6); $value->scoreArgument('value2')->willReturn(3); $this->scoreArgument(array('value1', 'value2'))->shouldBe(4.5); }