Open fubuki opened 6 years ago
The NullTransport
is only used for testing and responds with a hardcoded answer: https://github.com/ruflin/Elastica/blob/master/lib/Elastica/Transport/NullTransport.php#L26 We can definitively extend the NullTransport for more tests if needed. Feel free to open a PR.
When I use
NullTranport.php
to test suggest function on elasticsearch 5.6.6 with Elastica 5.3.1, thesearch
method will not return suggest body.If there are no suggest results in elasticsearch, elasticsearch server will return
But
NullTranport.php
will return