mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat(expect): fixes to contain with strings
This commit is contained in:
@ -147,7 +147,7 @@ final class Expectation
|
||||
*/
|
||||
public function toContain($value): Expectation
|
||||
{
|
||||
if (is_string($value)) {
|
||||
if (is_string($this->value)) {
|
||||
Assert::assertStringContainsString($value, $this->value);
|
||||
} else {
|
||||
Assert::assertContains($value, $this->value);
|
||||
|
||||
Reference in New Issue
Block a user