Nathanael Esayeas

Results 42 comments of Nathanael Esayeas

create a policy from controller actions ``` controllers: PostController: delete: policy: post with:user ``` > create a method that will get the model name. > create PostPolicy.php > update PostPolicy.php...

> It was counted towards assertions in all previouis Mockery versions this was a minor bug. > And my main issue is that from the changelog I'm unable to find...

Regarding BC Break, could/should we internally set the default expectation for method stubs `->shouldReceive(…)` to `->once()` and allow it to be overwritten? ``` php $mock = Mockery::mock(); $mock->shouldReceive('foo'); // Same...

This issue has been resolved via #1126, on the `master` branch. There is no exact expected release date. However, you may use the branch alias `dev-master`. ```BASH composer require --dev...

Hey @henzeb Thanks for the detailed report. It looks like the method `empty` is a [reserved word in PHP](https://github.com/mockery/mockery/blob/master/library/Mockery/Generator/MockConfigurationBuilder.php#L38-L51). --- Mocker has a syntax for getting around this. `\Mockery::mock('Namespace\MyClass[method1,method2,foo,bar]');` ---...

Hey @mfn Mocker has a syntax for getting around a [reserved word in PHP](https://github.com/mockery/mockery/blob/master/library/Mockery/Generator/MockConfigurationBuilder.php#L38-L51). ``` php Mockery::mock(Redis::class . '[eval]'); ``` you may also, as you previously mentioned, use `MockConfigurationBuilder::setBlackListedMethods()`

Hey @fis2009, To better understand the issues and help you solve them, can you please share where you're seeing the "Mockery is not found " error message? Did you use...

Hey @sakarikl I believe the behavior you are describing is [`Proxied Partial Mock`](http://docs.mockery.io/en/latest/reference/partial_mocks.html#proxied-partial-mock). ```php $object = new Test(); $mock1 = \Mockery::instanceMock($object)->makePartial(); // ^ $mock1 is the same as $mock2 ⌄...