Download the PHP package bkubicki/magento2-unit-tests-doubles without Composer
On this page you can find all versions of the php package bkubicki/magento2-unit-tests-doubles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package magento2-unit-tests-doubles
BKubicki Magento 2 Unit Tests Doubles
Overview
Library provides useful doubles of different kinds for unit testing of Magento 2.3+. Some of the doubles can be created using dedicated builders, which helps in configuring desired behavior of doubles. By using these doubles you can get rid of over-mocking in unit tests and time spent on writing unit should decrease. It can be achieved because all doubles inherits or implements replaced object or interface, so type consistency is preserved. Examples in here.
Prerequisites
- PHP ^7.4
Installation
To install the extension use the following commands:
Tests
Unit
Run command
which is an alias for
Integration
Run command
which is an alias for
Mutation tests (using Infection)
-
Infection tests requires xDebug enabled.
-
Run command
which does the following:
-
Run PHPUnit tests and generate coverage in xml:
- Run Infection mutation tests for covered code
-
- Find detailed report from mutations in .
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Changelog
See changelog here.
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of magento2-unit-tests-doubles with dependencies
magento/framework Version ^100.1|^101.0|^102.0|^103.0
magento/module-catalog Version ^101.0|^102.0|^103.0|^104.0
magento/module-customer Version ^101.0|^102.0|^103.0
magento/module-quote Version ^101.0