~jacekn/wordpress/wp-plugin-swift-storage-v2

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/src/Framework/Error.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 *
 
14
 * @package    PHPUnit
 
15
 * @subpackage Framework
 
16
 * @author     Sebastian Bergmann <sebastian@phpunit.de>
 
17
 * @copyright  Sebastian Bergmann <sebastian@phpunit.de>
 
18
 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
 
19
 * @link       http://www.phpunit.de/
 
20
 * @since      Class available since Release 2.2.0
 
21
 */
 
22
class PHPUnit_Framework_Error extends PHPUnit_Framework_Exception
 
23
{
 
24
    /**
 
25
     * Constructor.
 
26
     *
 
27
     * @param string    $message
 
28
     * @param integer   $code
 
29
     * @param string    $file
 
30
     * @param integer   $line
 
31
     * @param Exception $previous
 
32
     */
 
33
    public function __construct($message, $code, $file, $line, Exception $previous = null)
 
34
    {
 
35
        parent::__construct($message, $code, $previous);
 
36
 
 
37
        $this->file  = $file;
 
38
        $this->line  = $line;
 
39
    }
 
40
}