Skip to content

Commit

Permalink
Add helper method to determine stray request prevention state (#728)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
  • Loading branch information
huangdijia and huangdijia authored Oct 22, 2024
1 parent 73169ea commit f76ad3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@ public function preventStrayRequests($prevent = true)
return $this;
}

/**
* Determine if stray requests are being prevented.
*
* @return bool
*/
public function preventingStrayRequests()
{
return $this->preventStrayRequests;
}

/**
* Indicate that an exception should not be thrown if any request is not faked.
*
Expand Down

0 comments on commit f76ad3a

Please sign in to comment.