Last active
June 1, 2016 17:59
-
-
Save programmerkev/f636679bc65ddfe1a4d34c9c0cc95c90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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