AspectMock icon indicating copy to clipboard operation
AspectMock copied to clipboard

The most powerful and flexible mocking framework for PHPUnit / Codeception.

Results 43 AspectMock issues
Sort by recently updated
recently updated
newest added

root@5bf83f2d64e3:/var/www/abbatis-web# composer require codeception/aspect-mock --dev Do not run Composer as root/super user! See https://getcomposer.org/root for details Using version ^3.0 for codeception/aspect-mock ./composer.json has been updated Loading composer repositories with package...

When I use this method in this way ``` $WS->verifyNeverInvoked('callFactory', ['0', 'myCalledMethod', [ 'firstid' => 123, 'secondId' => 123, 'thirdId' => 124567, 'data' => [ 'value' => 456 ], ]]);...

The problem was introduced here: https://github.com/Codeception/AspectMock/pull/133/files#diff-50b2697c4aa86740dcae323b3d7ebe44R44 The `placeOptionalAndReferenceFunction` method uses `ReflectionFunction` which throws an exception if a non-existent function name is passed: > [ReflectionException] Function somefunc() does not exist Before...

I'm using Yii2, Codeception and AspectMock, when I'm trying to mock/double static method from parent class then original method is used instad of mocked one. Below example: class Yii extends...

Is it possible to return fake values from mocked methods using an object created with `test::spec` ? I've tried this and it never seems to call my fake method: ```...

I was able to get AspectMock to instrument my own classes in my directory but I can not get it to work on classes in the composer `/vendor` directory.... Is...

Is there any to remove temp created files? It is being generated in the path we defined in _bootstrap file. $kernel = \AspectMock\Kernel::getInstance(); ``` $kernel->init([ 'debug' => true, 'cacheDir' =>...

I have a similar problem with https://github.com/Codeception/AspectMock/pull/66 When i try to mock laravel database (v5.2.45) file [/vendor/illuminate/database/Query/Builder.php](https://github.com/illuminate/database/blob/v5.2.45/Query/Builder.php#L1737) ` /** * Get a generator for the given query. * * @return...

I'm talking about: http://php.net/manual/en/language.oop5.final.php Why I need this: https://phpunit.de/manual/current/en/test-doubles.html Final, private and static methods cannot be stubbed or mocked. They are ignored by PHPUnit's test double functionality and retain their...