This commit is contained in:
Nuno Maduro
2020-05-11 18:38:30 +02:00
commit de2929077b
112 changed files with 6211 additions and 0 deletions

15
tests/Features/Mocks.php Normal file
View File

@ -0,0 +1,15 @@
<?php
interface Foo
{
public function bar(): int;
}
it('has bar', function () {
$mock = Mockery::mock(Foo::class);
$mock->shouldReceive('bar')
->times(1)
->andReturn(2);
assertEquals(2, $mock->bar());
});