Skip to content

Releases: Spameri/DependencyMocker

PHP 8.1 support

10 Feb 09:01
78c893c
Compare
Choose a tag to compare

Return NULL as expected

16 Apr 08:26
Compare
Choose a tag to compare

Fixed - When annotaion is empty return NULL instead of empty string.

Drop Nette/DI dependency

27 Feb 09:46
Compare
Choose a tag to compare

Dropped Nette/DI dependency for better usage in applications with different version of Nette/DI.

Mockery version Bump

21 Feb 15:04
4b33012
Compare
Choose a tag to compare
  • Fix when banned classes not set
  • Travis config

v1.1

08 Feb 12:06
Compare
Choose a tag to compare
  • New function allowing to call private method on object.

Example:

class TestClass
{
    private function saltPassword($string)
    {
        return $string . 'salt';
    }
}

Test result:

$testClass = new TestClass();

$result = \Spamer\DependencyMocker\Mocker::callPrivateFunction($testClass, 'saltPassword', ['string']);

\Tester\Assert::same('stringsalt', $result);

v1.0.1

08 Feb 12:03
Compare
Choose a tag to compare
  • Fixed exception when mocking class without __construct method.

v1.0

03 Dec 09:33
Compare
Choose a tag to compare
Initial commit