Skip to content

Instantly share code, notes, and snippets.

@programmerkev
Last active June 1, 2016 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmerkev/f636679bc65ddfe1a4d34c9c0cc95c90 to your computer and use it in GitHub Desktop.
Save programmerkev/f636679bc65ddfe1a4d34c9c0cc95c90 to your computer and use it in GitHub Desktop.
<?php
use User;
class InterviewQuestionTest extends PHPUnit_Framework_TestCase
{
/**
* @covers InterviewQuestion::testMe
*/
public function testReturnsCorrectUser()
{
$question = new InterviewQuestion(new User);
$user = $question->testMe(1);
$this->assertEquals($user->id, 1);
$this->assertEquals($user->status, 'active');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment