public function testPasswordField() { $field = new CoreFields\PasswordField(); $password = "******"; $hash_password = $field->check($password); $this->assertEquals('', CoreFields\PasswordField::check_password("a", $hash_password)); $simple_password = "******"; $hash_password = $field->check($simple_password); $this->assertTrue(CoreFields\PasswordField::check_password($simple_password, $hash_password)); }