tests/HasPwnedMock.php
use Valorin\Pwned\Pwned; trait HasPwnedMock{ public function mockPwned($return = true) { $this->partialMock(Pwned::class)->shouldReceive('passes')->andReturn($return); }}
use Valorin\Pwned\Pwned; trait HasPwnedMock{ public function mockPwned($return = true) { $this->partialMock(Pwned::class)->shouldReceive('passes')->andReturn($return); }}