Asvae\ApiTester\Collections\RouteCollection::filterExcept PHP Method

filterExcept() public method

Exclude routes that match patterns.
public filterExcept ( $patterns = [] ) : static
return static
    public function filterExcept($patterns = [])
    {
        if (empty($patterns)) {
            return $this;
        }
        $toExclude = $this->filterMatch($patterns)->keys()->toArray();
        return $this->except($toExclude);
    }

Usage Example

 public function testEmptyExcept()
 {
     $count = $this->routes->filterExcept()->count();
     $this->assertEquals(6, $count);
 }