public function anyOf() { $this->assertEquals(['./first.txt', './second.txt', './zerobytes.png', './sub/IMG_6100.txt'], $this->filterFixtureWith(Filters::anyOf([new SizeSmallerThanFilter(500), new ExtensionEqualsFilter('txt')]), true)); }
public function anyOf() { $this->assertEquals(['Hello', 'World', '!'], iterator_to_array($this->filter(['Hello', 'test', '', 'World', '!'], Filters::anyOf([newinstance('util.Filter<string>', [], ['accept' => function ($e) { return 1 === strlen($e); }]), newinstance('util.Filter<string>', [], ['accept' => function ($e) { return strlen($e) > 0 && ord($e[0]) < 97; }])])))); }