| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class LazyInitializationTest extends PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var UserService |
||
| 23 | */ |
||
| 24 | protected $userService; |
||
| 25 | |||
| 26 | protected function setUp(): void |
||
| 29 | } |
||
| 30 | |||
| 31 | public function testRegister() |
||
| 32 | { |
||
| 33 | $this->assertEquals(sprintf("%s has been registered \n", 'John'), $this->userService->register('John')); |
||
| 34 | $this->assertEquals(sprintf("%s was already registered \n", 'John'), $this->userService->register('John')); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testLogin() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |