Running unit tests results in PHPUnit deprecation notice #6613

Closed
opened 2026-01-22 15:35:42 +01:00 by admin · 3 comments
Owner

Originally created by @mchekin on GitHub (Jan 26, 2021).

  • Branch: 2.8.x
  • PHP 8.0.1
  • PHPUnit 9.5.1

Running unit tests results in deprecation notices:

assertFileNotExists() is deprecated and will be removed in PHPUnit 10. Ref
actor your code to use assertFileDoesNotExist() instead.

Screenshot 2021-01-26 224527

Originally created by @mchekin on GitHub (Jan 26, 2021). - Branch: 2.8.x - PHP 8.0.1 - PHPUnit 9.5.1 Running unit tests results in deprecation notices: > assertFileNotExists() is deprecated and will be removed in PHPUnit 10. Ref actor your code to use assertFileDoesNotExist() instead. ![Screenshot 2021-01-26 224527](https://user-images.githubusercontent.com/2437233/105909764-4a832880-6028-11eb-84ed-12a1ad708a45.png)
admin closed this issue 2026-01-22 15:35:43 +01:00
Author
Owner

@ostrolucky commented on GitHub (Jan 30, 2021):

Thanks for noticing, but we don't need to have issue for that opened. They are just warnings and there isn't any good quick way to solve these.

@ostrolucky commented on GitHub (Jan 30, 2021): Thanks for noticing, but we don't need to have issue for that opened. They are just warnings and there isn't any good quick way to solve these.
Author
Owner

@mchekin commented on GitHub (Jan 30, 2021):

@ostrolucky
Why not switching to assertFileDoesNotExist ?
I would gladly create a pull request for that.

@mchekin commented on GitHub (Jan 30, 2021): @ostrolucky Why not switching to `assertFileDoesNotExist` ? I would gladly create a pull request for that.
Author
Owner

@ostrolucky commented on GitHub (Jan 30, 2021):

Because we need phpunit 8 so we can test with php 7.2

@ostrolucky commented on GitHub (Jan 30, 2021): Because we need phpunit 8 so we can test with php 7.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6613