public function testCreateUser() { $email = '*****@*****.**'; $passwordHash = 'Yet another fake password hash'; $users = count($this->dao->findAll()); $user = $this->dao->createUser($email, $passwordHash); $this->assertEquals($users + 1, count($this->dao->findAll())); $this->assertEquals(2, $user['id']); $this->assertEquals($email, $user['email']); $this->assertEquals($passwordHash, $user['password_hash']); }