describe('->getUsers()', function () { it('should return an array of users', function () { $actual = new MysqlUserRepository(); $count = $actual->count(); $users = []; $users = $actual->getUsers(); expect(count($users))->to->equal($count); expect(array_pop($users))->to->be->instanceof('Notes\\Domain\\Entity\\User'); }); }); describe('->removeUserID(Uuid $id)', function () { it('should remove a user by a userID', function () { $actual = new MysqlUserRepository(); $count = $actual->count(); $count -= 1; $actual->removeById($this->user1Key); expect($actual->count())->to->equal($count); }); }); describe('->getUser($userID)', function () { it('should return a single user that has the userid given', function () { $actual = new MysqlUserRepository(); $username = "******"; $password = "******"; $email = "*****@*****.**"; $firstName = "Gary"; $lastName = "Grice"; $this->user1Key = new Uuid(); $user1 = new User($this->user1Key, $username, $password, $email, $firstName, $lastName); $actual->add($user1); $returnedUser = $actual->getUser($this->user1Key);