diff --git a/src/Test/PHPUnit/AbstractCacheConstraint.php b/src/Test/PHPUnit/AbstractCacheConstraint.php index 2b4ab888..dc2be3c8 100644 --- a/src/Test/PHPUnit/AbstractCacheConstraint.php +++ b/src/Test/PHPUnit/AbstractCacheConstraint.php @@ -64,7 +64,7 @@ protected function matches($other) throw new \RuntimeException($message); } - return $this->getValue() === (string) $other->getHeaderLine($this->header); + return strpos((string) $other->getHeaderLine($this->header), $this->getValue()) !== false; } /**