Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 10
CRAP
0.00% covered (danger)
0.00%
0 / 30
ConstraintTraitForV7
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 10
110
0.00% covered (danger)
0.00%
0 / 30
 count
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 toString
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 additionalFailureDescription
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 failureDescription
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 matches
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 doAdditionalFailureDescription
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 doCount
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 doFailureDescription
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 doMatches
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 doToString
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
<?php
/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Symfony\Bridge\PhpUnit\Legacy;
/**
 * @internal
 */
trait ConstraintTraitForV7
{
    public function count(): int
    {
        return $this->doCount();
    }
    public function toString(): string
    {
        return $this->doToString();
    }
    protected function additionalFailureDescription($other): string
    {
        return $this->doAdditionalFailureDescription($other);
    }
    protected function failureDescription($other): string
    {
        return $this->doFailureDescription($other);
    }
    protected function matches($other): bool
    {
        return $this->doMatches($other);
    }
    private function doAdditionalFailureDescription($other): string
    {
        return '';
    }
    private function doCount(): int
    {
        return 1;
    }
    private function doFailureDescription($other): string
    {
        return $this->exporter()->export($other).' '.$this->toString();
    }
    private function doMatches($other): bool
    {
        return false;
    }
    private function doToString(): string
    {
        return '';
    }
}