Skip to content

Commit c4eed56

Browse files
committed
Add missing exporter function for PHPUnit 7
1 parent 83a1178 commit c4eed56

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Legacy/ConstraintTraitForV7.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Bridge\PhpUnit\Legacy;
1313

14+
use SebastianBergmann\Exporter\Exporter;
15+
1416
/**
1517
* @internal
1618
*/
@@ -31,6 +33,15 @@ protected function additionalFailureDescription($other): string
3133
return $this->doAdditionalFailureDescription($other);
3234
}
3335

36+
protected function exporter(): Exporter
37+
{
38+
if (null !== $this->exporter) {
39+
$this->exporter = new Exporter();
40+
}
41+
42+
return $this->exporter;
43+
}
44+
3445
protected function failureDescription($other): string
3546
{
3647
return $this->doFailureDescription($other);

0 commit comments

Comments
 (0)