| 1 | <?php |
||
| 5 | class UserTest extends \PHPUnit_Framework_TestCase |
||
| 6 | { |
||
| 7 | public function testToString() |
||
| 8 | { |
||
| 9 | $user = $this->getInstance(); |
||
| 10 | $this->assertNull($user->__toString()); |
||
| 11 | |||
| 12 | $user->setUsername('Jean-Jacques'); |
||
| 13 | $this->assertEquals('Jean-Jacques', $user->__toString()); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function testCreated() |
||
| 25 | |||
| 26 | public function testActivated() |
||
| 34 | |||
| 35 | public function getInstance() |
||
| 39 | } |
||
| 40 |