[MFTF] Replace AspectMock with PHPUnit for FilesystemTest #33291
Labels
Priority: P1
Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.
Progress: done
Project: PHP8
Project: Platform Health
Goal
codeception/aspect-mock
library is still not compatible with PHP 8.0 at the time of the creation of this ticket.To speed up Magento compatibility with new PHP versions we'd like to eliminate
codeception/aspect-mock
dependency from MFTF. This will make MFTF compatible with PHP 8.0 that is required for declaring the Magento core PHP 8 compatible as well.In order to do this existing unit tests using AspectMock should be refactored to use PHPUnit instead.
Task
Replace AspectMock with PHPUnit for
dev/tests/unit/Magento/FunctionalTestFramework/Config/Reader/FilesystemTest.php
in https://github.com/magento/magento2-functional-testing-framework repository.Example
Mocking an object using AspectMock (current):
Mocking an object using PHPUnit (refactored code):
Example pull request: magento/magento2-functional-testing-framework#833
The text was updated successfully, but these errors were encountered: