Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #18401: Unable to use checkdate function if debug set #3214

Merged
merged 6 commits into from Jun 13, 2023

Conversation

gabrieljenik
Copy link
Collaborator

No description provided.

@gabrieljenik
Copy link
Collaborator Author

Pnding of hooking new function to expression manager

@sonarcloud
Copy link

sonarcloud bot commented Jun 12, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 13 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@gabrieljenik
Copy link
Collaborator Author

Now should be Ok

Copy link
Collaborator

@Shnoulle Shnoulle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Maybe adding some invalid date checkdate(2,31,2021) checkdate(13,13,2021)

public function testYearCheck()
{
$check_string = exprmgr_checkdate(06, 07, 'Twenty Twenty-three');
$this->assertFalse($check_string, 'Unexpected evaluation result, the year parameter should not be a string.');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

$this->assertFalse($check_string, 'Unexpected evaluation result, the year parameter should not be a string.');

$check_numeric = exprmgr_checkdate(06, 07, '2023');
$this->assertTrue($check_numeric, 'Unexpected evaluation result, the year parameter can be a numeric value.');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

$this->assertTrue($check_numeric, 'Unexpected evaluation result, the year parameter can be a numeric value.');

$check_int = exprmgr_checkdate(06, 07, 2023);
$this->assertTrue($check_int, 'Unexpected evaluation result, the year parameter can be an integer.');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Shnoulle Shnoulle added Code review done Version checked for code issue without testing and removed Needs update by author labels Jun 13, 2023
@olleharstedt olleharstedt merged commit b80eb91 into master Jun 13, 2023
22 of 23 checks passed
@olleharstedt olleharstedt deleted the bug/18401-unusable-checkdate-test branch June 13, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code review done Version checked for code issue without testing Has auto test
Projects
None yet
4 participants