mcustiel / phiremock-common

Common classes for Phiremock
GNU General Public License v3.0
3 stars 4 forks source link

Wrong order of needle/haystack in Matchers/Contains #5

Closed enduro44 closed 3 years ago

enduro44 commented 3 years ago

Hi @mcustiel

public function matches($value): bool { return strpos($this->getCheckValue()->get(), $value) !== false; } I guess it should be other way around

return strpos($value, $this->getCheckValue()->get()) !== false;

enduro44 commented 3 years ago

I've created small PR to fix this #6