/** * Tests the serialize method */ public function testSerialize() { $username = "******"; $password = "******"; $user = new User($username, $password); $expectedArray = array("id" => null, "username" => $username); $this->assertEquals($expectedArray, $user->serialize()); }