PHPackages                             loophp/mock-soapclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. loophp/mock-soapclient

ActiveLibrary[Testing &amp; Quality](/categories/testing)

loophp/mock-soapclient
======================

A fake and predictable SOAP client, useful for your unit tests.

1.2.2(4y ago)1272.1k—10%2[1 issues](https://github.com/loophp/mock-soapclient/issues)[8 PRs](https://github.com/loophp/mock-soapclient/pulls)MITPHPPHP &gt;= 7.4CI failing

Since Feb 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/loophp/mock-soapclient)[ Packagist](https://packagist.org/packages/loophp/mock-soapclient)[ Fund](https://www.paypal.me/drupol)[ GitHub Sponsors](https://github.com/drupol)[ RSS](/packages/loophp-mock-soapclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (19)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/6bd1db4763f0d5bbbfeca72dca0a060b704a045f8c9e8a1a20fe9b9fa8b27ba9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6f7068702f6d6f636b2d736f6170636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/mock-soapclient)[![GitHub stars](https://camo.githubusercontent.com/53a3af40ee24b09ce327864e3daa4a90ffc24fc850058a4a944f2d7b7b949fd7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6f6f7068702f6d6f636b2d736f6170636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/mock-soapclient)[![Total Downloads](https://camo.githubusercontent.com/99a1a45bbadbf6080f047894752a1ba06f344f5545c6261b512a50dcebdcdf75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6f7068702f6d6f636b2d736f6170636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/mock-soapclient)[![GitHub Workflow Status](https://camo.githubusercontent.com/d8d87b1fc650772f71003ae9d44d02e2161e3063233c0aa4afa5fca37e697305/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f6f7068702f6d6f636b2d736f6170636c69656e742f436f6e74696e756f7573253230496e746567726174696f6e3f7374796c653d666c61742d737175617265)](https://github.com/loophp/mock-soapclient/actions)[![Scrutinizer code quality](https://camo.githubusercontent.com/312a9d56e4887ed33909c2b2e100ec20317096e6b11173eaea1f30d9287587d9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6c6f6f7068702f6d6f636b2d736f6170636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/mock-soapclient/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/e7634d8125f5fdf48bcb18774543bdbef6706b0aeda98e78bc2b312fd0a16756/68747470733a2f2f73686570686572642e6465762f6769746875622f6c6f6f7068702f6d6f636b2d736f6170636c69656e742f636f7665726167652e737667)](https://shepherd.dev/github/loophp/mock-soapclient)[![Code Coverage](https://camo.githubusercontent.com/db9109acbb9025f2ea9feca6e37304000041cbd82f0032195cafc3b4c49259c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6f6f7068702f6d6f636b2d736f6170636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/loophp/mock-soapclient/?branch=master)[![License](https://camo.githubusercontent.com/a64178e426b7ba8572e9af07860c1b827a9c5d53f6e50c4aded949550818c97e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6f7068702f6d6f636b2d736f6170636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/mock-soapclient) [![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/drupol)

Mock SOAP Client
================

[](#mock-soap-client)

A fake and predictable SOAP client ;-)

This library let you configure a SOAP client and the responses it returns.

Not any real SOAP requests are sent, the sole purpose of this library is for testing.

Installation
------------

[](#installation)

`composer require loophp/mock-soapclient --dev`

Usage
-----

[](#usage)

Using an array of responses

```
