You are here

public function Finder::notContains in Database Sanitize 7

Adds tests that file contents must not match.

Strings or PCRE patterns can be used:

$finder->notContains('Lorem ipsum') $finder->notContains('/Lorem ipsum/i')

Parameters

string $pattern A pattern (string or regexp):

Return value

$this

See also

FilecontentFilterIterator

File

vendor/symfony/finder/Finder.php, line 223

Class

Finder
Finder allows to build rules to find files and directories.

Namespace

Symfony\Component\Finder

Code

public function notContains($pattern) {
  $this->notContains[] = $pattern;
  return $this;
}