Skip to content

Instantly share code, notes, and snippets.

View karptonite's full-sized avatar

Daniel Karp karptonite

View GitHub Profile
<?php
class PostsTest extends TestCase {
public function testShow()
{
$testpost = ['text' => 'Test post', 'id' => 1];
$this->instanceMock('PostRepositoryInterface')->shouldReceive('find')->with(1)->once()->andReturn($testpost);
}
}