noregression/callable-comparator

View on GitHub
src/PHPUnit/Exporter/Exporter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace NoRegression\PHPUnit\Exporter;

use NoRegression\PHPUnit\Comparator\Callables\CallableInterface;
use SebastianBergmann\Exporter\Exporter as BaseExporter;

class Exporter extends BaseExporter
{
    public function shortenedExport($value)
    {
        if ($value instanceof CallableInterface) {
            return (string)$value;
        }

        return parent::shortenedExport($value);
    }
}