Pest: Test with Mockery\Expectation will be marked as risky.

Created on 24 May 2020  路  3Comments  路  Source: pestphp/pest

Pest will mark the following test as risky. PHPUnit will mark it as passed.

use Illuminate\Log\Logger;
use Mockery as m;
use Monolog\Logger as Monolog;

test('example', function (): void {
    $writer = new Logger($monolog = m::mock(Monolog::class));
    $monolog->shouldReceive('error')->once()->with('foo', []);

    $writer->error('foo');
});
bug

Most helpful comment

Fixed on v0.1.5.

All 3 comments

On it...

Fixed on v0.1.5.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rihardssceredins picture rihardssceredins  路  5Comments

gulien picture gulien  路  3Comments

nunomaduro picture nunomaduro  路  4Comments

beliolfa picture beliolfa  路  3Comments

JacobBennett picture JacobBennett  路  6Comments