Skip to content

Commit a0e0b2b

Browse files
author
Christian Blank
committed
Fix spec
1 parent 7f4bebe commit a0e0b2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/CheckerSpec.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ function it_accepts_a_type_and_an_array_as_parameter_for_fulfills(TypeInterface
1919
$this->fulfills([], $type);
2020
}
2121

22-
function it_returns_a_result_in_fulfills(TypeInterface $type)
22+
function it_returns_the_result_of_the_type_in_fulfills(TypeInterface $type, ResultInterface $result)
2323
{
24+
$type->check([])->willReturn($result);
2425
$this->fulfills([], $type)->shouldBeAnInstanceOf(ResultInterface::class);
2526
}
2627
}

0 commit comments

Comments
 (0)