extend('toContainPhp', function (string $fragment) { \PHPUnit\Framework\Assert::assertNotFalse( PhpSource::position($this->value, $fragment), 'Expected PHP token sequence: ' . $fragment ); return $this; });