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

Hi, i use "codeception/aspect-mock": "^3.0" "laravel/framework": "5.6.*" php 7.1.* Try to do in test MyModel.php ``` class MyModel extends Model { ..... public function someTest() { return 'old return'; }...

I just try to test my Yii App with AspectMock and Codeception. My bootstrap.php: ``` include __DIR__.'/../vendor/autoload.php'; // composer autoload $kernel = \AspectMock\Kernel::getInstance(); $kernel->init([ 'debug' => true, 'appDir' => __DIR__...

In my tests, I am forcing Stripe to fail by giving it a bogus API key, so that I can test the error logging etc. However, when I have Aspect...

I created this simple test: ` require_once __DIR__.'/vendor/autoload.php'; $kernel = \AspectMock\Kernel::getInstance(); $kernel->init([ 'debug' => true, 'appDir'=>__DIR__."/vendor/codeception/aspect-mock/src/", 'cacheDir' => "/tmp/amock" ]); class User { public function getName() { return "test"; }...

Using Yii2, As soon as I extend my controllers with a custom class or implement custom interface I get following errors: ``` Class app\controllers\BaseController was not found by locator Class...

When using custom autoloader and try to get an instance of a class which has parent or implements an interface form the same custom namespace I have an error "PHP...

While using `AspectMock` for unit testing, the `autoload` method in `BaseYii.php` can not find the following class: > Class 'yii\base\UnknownClassException' not found However tests are passing successfully. ``` public static...

Hi, Im having an issue where im checking if a function is being call with the correct params, but one of my params is an array with objects in it....

under objects/system no name space ``` `class UserCheck { public $name; public function setName($name){ return $this->name = $name; } public function save(){ return 10; } public function getName(){ return $this->name;...