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 / 7
CRAP
0.00% covered (danger)
0.00%
0 / 9
ConstraintTraitForV7
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 7
72
0.00% covered (danger)
0.00%
0 / 9
 evaluate
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 count
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 toString
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 additionalFailureDescription
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 exporter
0.00% covered (danger)
0.00%
0 / 1
6
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 / 1
 matches
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Bridge\PhpUnit\Legacy;
13
14use SebastianBergmann\Exporter\Exporter;
15
16/**
17 * @internal
18 */
19trait ConstraintTraitForV7
20{
21    use ConstraintLogicTrait;
22
23    /**
24     * @return bool|null
25     */
26    public function evaluate($other, $description = '', $returnResult = false)
27    {
28        return $this->doEvaluate($other, $description, $returnResult);
29    }
30
31    public function count(): int
32    {
33        return $this->doCount();
34    }
35
36    public function toString(): string
37    {
38        return $this->doToString();
39    }
40
41    protected function additionalFailureDescription($other): string
42    {
43        return $this->doAdditionalFailureDescription($other);
44    }
45
46    protected function exporter(): Exporter
47    {
48        if (null === $this->exporter) {
49            $this->exporter = new Exporter();
50        }
51
52        return $this->exporter;
53    }
54
55    protected function failureDescription($other): string
56    {
57        return $this->doFailureDescription($other);
58    }
59
60    protected function matches($other): bool
61    {
62        return $this->doMatches($other);
63    }
64}