src/ClassFinder.php
protected function runFilter()
    {
        foreach ($this->foundClasses as $file => $fqcn)
        {
            try
            {
                $rClass = new ReflectionClass($fqcn);
            }
            catch (ReflectionException $e)
            {
                $result = false;
            }

            if ($this->filter === null)
            {
                $result = $this->defaultFilter($rClass);
            }
            else
            {
                $result = call_user_func($this->filter, $rClass);
            }

            if ($result === false)
            {
                unset($this->foundClasses[$file]);
            }
        }
    }
protected function runFilter()
    {
        foreach ($this->foundClasses as $file => $fqcn)
        {
            try
            {
                $rClass = new ReflectionClass($fqcn);
            }
            catch (ReflectionException $e)
            {
                $result = false;
            }

            if ($this->filter === null)
            {
                $result = $this->defaultFilter($rClass);
            }
            else
            {
                $result = call_user_func($this->filter, $rClass);
            }

            if ($result === false)
            {
                unset($this->foundClasses[$file]);
            }
        }
    }
Runs a filter over the array of `$foundCLasses`.

Also ensures the classes are real by creating a ReflectionClass instance.
By default we use the `defaultFilter` method.

@return void