-
tests/HasPwnedMock.php
Open in GitHubuse 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);
}
}