We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4bebe commit a0e0b2bCopy full SHA for a0e0b2b
spec/CheckerSpec.php
@@ -19,8 +19,9 @@ function it_accepts_a_type_and_an_array_as_parameter_for_fulfills(TypeInterface
19
$this->fulfills([], $type);
20
}
21
22
- function it_returns_a_result_in_fulfills(TypeInterface $type)
+ function it_returns_the_result_of_the_type_in_fulfills(TypeInterface $type, ResultInterface $result)
23
{
24
+ $type->check([])->willReturn($result);
25
$this->fulfills([], $type)->shouldBeAnInstanceOf(ResultInterface::class);
26
27
0 commit comments