Skip to content

Instantly share code, notes, and snippets.

@paquettg
paquettg / simple.php
Last active January 4, 2016 19:49
Sample phpunit test
<?php
// set up the mock
class testUser extends PHPUnit_Test_Case {
public function testUserCreate()
{
$user = Mockery::mock('models_user');
$user->shouldReceive('select')
->once()
->with($id)