1<?php
2/*
3 * This file is part of PHPUnit.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11/**
12 * Wrapper for PHP errors.
13 */
14class PHPUnit_Framework_Error extends PHPUnit_Framework_Exception
15{
16    /**
17     * Constructor.
18     *
19     * @param string    $message
20     * @param int       $code
21     * @param string    $file
22     * @param int       $line
23     * @param Exception $previous
24     */
25    public function __construct($message, $code, $file, $line, Exception $previous = null)
26    {
27        parent::__construct($message, $code, $previous);
28
29        $this->file  = $file;
30        $this->line  = $line;
31    }
32}
33