packagist saloonphp/saloon v0.7.0
Version v0.7.0 - Mock Expectations

latest releases: v3.x-dev, v3.10.0, v3.9.1...
2 years ago

New Features

You can now assert that Saloon has sent the correct response in your application! The following expectation methods have been added:

  • AssertSent (accepts request classes, closures and URL patterns)
  • AssertNotSent (inverse of assert sent)
  • AssertSentJson (accepts a class and an array to check both are equal)
  • AssertNothingSent
  • AssertSentCount

Here's how you can use it:

// Laravel (using Facade)

Saloon::assertSent(GetForgeServerRequest::class);

// Normal PHP

$mockClient->assertSent(GetForgeServerRequest::class);

What's Changed

Full Changelog: v0.6.6...v0.7.0

Don't miss a new saloon release

NewReleases is sending notifications on new releases.