Releases: badoo/soft-mocks
Releases · badoo/soft-mocks
2.0.3
2.0.2
2.0.1
2.0.0
There are next changes:
- fix short array destructing when some elements are absent;
- dev dependence vaimo/composer-patches was updated from 3.4.3 to 3.23.1;
- patch level for patches was provided;
- phpunit6 support was added;
- class static protected constant was fixed;
- class constants inheritance was fixed:
- before fix:
class A {const NAME = 'A';} class B extends A {} \Badoo\SoftMocks::redefineConstant(A::class . '::NAME', 'B'); echo A::NAME . "\n"; // B echo B::NAME . "\n"; // A
- after fix:
class A {const NAME = 'A';} class B extends A {} \Badoo\SoftMocks::redefineConstant(A::class . '::NAME', 'B'); echo A::NAME . "\n"; // B echo B::NAME . "\n"; // B
- before fix:
- soft-mocks init logic was moved to src/init_with_composer.php script from phpunit patch;
- methods \Badoo\SoftMocks::getRewrittenFilePath() and \Badoo\SoftMocks::getOriginalFilePath() were added;
- SOFT_MOCKS_CACHE_PATH environment variable was added for redefine default mocks cache path;
- Now \RuntimeException() isn't caught in \Badoo\SoftMocks::rewrite().
1.3.5
1.3.4
1.3.3
1.3.2
1.3.0
1.2.0
There are next changes:
- added Travis and Scrutinizer support;
- skipped running PHP7.0 tests on previously versions of PHP;
- changed default namespace to \Badoo. \QA namespace marked as deprecated and will be removed in 2.0.0;
- \QA\SoftMocksTraverser::$can_ref gone private, was mistakenly without scope.