12 namespace Symfony\Component\Finder\Comparator;
46 if (!preg_match(
'#^\s*(==|!=|[<>]=?)?\s*([0-9\.]+)\s*([kmg]i?)?\s*$#i', $test, $matches)) {
47 throw new \InvalidArgumentException(sprintf(
'Don\'t understand "%s" as a number test.', $test));
52 throw new \InvalidArgumentException(sprintf(
'Invalid number "%s".',
$target));
54 if (isset($matches[3])) {
56 switch (strtolower($matches[3])) {
79 $this->
setOperator(isset($matches[1]) ? $matches[1] :
'==');