assertFalse(sambaSamAccount::validateHistoryEntry("password", "")); $this->assertFalse(sambaSamAccount::validateHistoryEntry("password", "123")); $this->assertFalse(sambaSamAccount::validateHistoryEntry("password", "1234567890123456789012345678901234567890")); $this->assertFalse(sambaSamAccount::validateHistoryEntry("password", "12345678901234567890123456789012")); $this->assertTrue(sambaSamAccount::validateHistoryEntry("password", "8E36265C3B44B640CCB365040DE68E5A4BF09D61C23AB4A0CC9D1866E1C69191")); } public function testCreateHistoryEntry() { $this->assertEquals(sambaSamAccount::createHistoryEntry(""), null); $password = 'password123'; $this->assertTrue(sambaSamAccount::validateHistoryEntry($password, sambaSamAccount::createHistoryEntry($password))); } } ?>