Вход Регистрация
Файл: gapps/vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php
Строк: 62
<?php
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Exception for expectations which failed their check.
 *
 * The exception contains the error message and optionally a
 * SebastianBergmannComparatorComparisonFailure which is used to
 * generate diff output of the failed expectations.
 *
 * @since Class available since Release 3.0.0
 */
class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_AssertionFailedError
{
    
/**
     * @var SebastianBergmannComparatorComparisonFailure
     */
    
protected $comparisonFailure;

    public function 
__construct($messageSebastianBergmannComparatorComparisonFailure $comparisonFailure nullException $previous null)
    {
        
$this->comparisonFailure $comparisonFailure;

        
parent::__construct($message0$previous);
    }

    
/**
     * @return SebastianBergmannComparatorComparisonFailure
     */
    
public function getComparisonFailure()
    {
        return 
$this->comparisonFailure;
    }
}
Онлайн: 1
Реклама