Skip to main content

jcergolj/laravellte

217 stars
1 code files
View jcergolj/laravellte on GitHub

tests/HasPwnedMock.php

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