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

Checking correct method exists #27

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

JimTools
Copy link
Contributor

Description
updating assertDirectoryDoesNotExist to test for the correct method when using the old version of PHPUnit

There is an issue with the test ensureDirectoryCreated_directoryAlreadyCreated_doNothing it fails when using PHP 7.2, The base class TestCase which extends PHPUnit to help with backward compatibility is incorrect. The method assertDirectoryDoesNotExist is checking for expectExceptionMessageMatches not it's self.

Suggestion
As this package supports PHP 7.1 and great maybe all versions should be tested in the CI?

closes #26

updating assertDirectoryDoesNotExist to test for the correct method when
using old version of phpunit
@scheb
Copy link
Owner

scheb commented Feb 25, 2024

Thanks for fixing that! Must have copy & pasted that and missed to change the method. Wondering why that ever worked 🙈 because in fact there is a CI-build against 7.1 🤷

@scheb scheb merged commit 0e11a58 into scheb:1.x Feb 25, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing test ensureDirectoryCreated_directoryAlreadyCreated_doNothing
2 participants