Skip to content

Releases: Spameri/DependencyMocker

PHP 8.1 support

Choose a tag to compare

@Spamercz Spamercz released this 10 Feb 09:01
78c893c

PHP 8.1 support

Thanks @Jakub-Fajkus

& PeckaDesign

Return NULL as expected

Choose a tag to compare

@Spamercz Spamercz released this 16 Apr 08:26

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

Drop Nette/DI dependency

Choose a tag to compare

@Spamercz Spamercz released this 27 Feb 09:46

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

Mockery version Bump

Choose a tag to compare

@Spamercz Spamercz released this 21 Feb 15:04
4b33012
  • Fix when banned classes not set
  • Travis config

v1.1

Choose a tag to compare

@Spamercz Spamercz released this 08 Feb 12:06
  • 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

Choose a tag to compare

@Spamercz Spamercz released this 08 Feb 12:03
  • Fixed exception when mocking class without __construct method.

v1.0

Choose a tag to compare

@Spamercz Spamercz released this 03 Dec 09:33
Initial commit