protected function intercept($errno, $errstr, $errfile, $errline, $errcontext)
    {
        foreach ($this->expected as $warning)
        {
            if ($errno & $warning[0] && strpos($errstr, $warning[1]) !== false)
            {
                $this->intercepted[] = new \ErrorException($errstr, 0, $errno, $errfile, $errline);
                return true;
            }
        }
        return false;
    }