-
Notifications
You must be signed in to change notification settings - Fork 8
Add symfony 6 comptability #54
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
Add symfony 6 comptability #54
Conversation
a03497b
to
e870f1f
Compare
41ece89
to
a9a00c3
Compare
a9a00c3
to
50b894e
Compare
@@ -124,7 +128,11 @@ public function testExecuteWithFail() | |||
$this->assertEquals($intervalTask->getWorkload(), $task->getWorkload()); | |||
$this->assertLessThanOrEqual($intervalTask->getFirstExecution(), $task->getFirstExecution()); | |||
$this->assertLessThanOrEqual($intervalTask->getLastExecution(), $task->getLastExecution()); | |||
$this->assertEquals($intervalTask->getInterval(), $task->getInterval()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asserting equals between the interval object resulted in an error: https://github.com/php-task/TaskBundle/runs/7495173211?check_suite_focus=true
honestly I've no idea why this happens in the CI, locally everything works as expected 😅
but I guess the new additional lines test the same thing and it is working now also in the CI :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Prokyonn is there a __toString method? i would compare at least this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wachterjohannes https://github.com/dragonmantank/cron-expression/blob/master/src/Cron/CronExpression.php#L384-L387 yes, but this is already implicitly tested in line 132:
$this->assertEquals($intervalTask->getInterval()->getExpression(), $task->getInterval()->getExpression());
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK then all right - should we tag the library first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah makes sense to add a version instead of the dev branch before merging :)
composer.json
Outdated
"symfony/process": "^2.8 || ^3.4 || ^4.0 || ^5.0", | ||
"doctrine/orm": "^2.5" | ||
"php": "^8.0 || ^8.1", | ||
"php-task/php-task": "dev-master as 2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tag before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Prokyonn please update the composer.json https://github.com/php-task/php-task/releases/tag/2.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wachterjohannes done
No description provided.