Codeception / Verify

BDD Assertions for PHPUnit and Codeception
MIT License
146 stars 25 forks source link

expect()->stringToContainsString #48

Closed Vetrinus closed 4 years ago

Vetrinus commented 4 years ago

ExpectAny::stringToContainsString* methods is incorrect


class ExpectAny {

...

public function stringToContainString($needle, string $message = ''): self
    {
        Expect::String($this->actual)->notToContainString($needle, $message);
        return $this;
    }

    public function stringToContainStringIgnoringCase($needle, string $message = ''): self
    {
        Expect::String($this->actual)->notToContainStringIgnoringCase($needle, $message);
        return $this;
    }`
Naktibalda commented 4 years ago

Fixed by #49