<?php // this is an autogenerated file - do not edit
require_once 'phar://phpunit-example-extension-3.0.3.phar' . '/phpunit-example-extension/Comparable.php';
require_once 'phar://phpunit-example-extension-3.0.3.phar' . '/phpunit-example-extension/Comparator.php';
require_once 'phar://phpunit-example-extension-3.0.3.phar' . '/phpunit-example-extension/ResultPrinter.php';
require_once 'phar://phpunit-example-extension-3.0.3.phar' . '/phpunit-example-extension/TestCaseTrait.php';
require_once 'phar://phpunit-example-extension-3.0.3.phar' . '/phpunit-example-extension/TestListener.php';
__HALT_COMPILER(); ?>
!         $   phpunit-example-extension-3.0.3.phar       manifest.xml?  …ò[?  (à¶ü¶         LICENSE  …ò[  ÷Xá¶      (   phpunit-example-extension-3.0.3.phar.asc!  …ò[!  H[¾Þ¶      *   phpunit-example-extension/TestListener.php×  …ò[×  ¨~ æ¶      (   phpunit-example-extension/Comparable.phpp  …ò[p  ÈOé¹¶      (   phpunit-example-extension/Comparator.phpc  …ò[c  ‡´f2¶      +   phpunit-example-extension/ResultPrinter.phpó  …ò[ó  îår$¶      +   phpunit-example-extension/TestCaseTrait.php2  …ò[2  ™ïby¶      <?xml version="1.0" encoding="utf-8" ?>
<phar xmlns="https://phar.io/xml/manifest/1.0">
    <contains name="phpunit/phpunit-example-extension" version="3.0.3" type="extension">
        <extension for="phpunit/phpunit" compatible="^6.4 || ^7.0 || ^8.0"/>
    </contains>

    <copyright>
        <author name="Sebastian Bergmann" email="sebastian@phpunit.de"/>
        <license type="BSD-3-Clause" url="https://github.com/sebastianbergmann/phpunit-example-extension/blob/master/LICENSE"/>
    </copyright>

    <requires>
        <php version="^7.1"/>
    </requires>
</phar>
PHPUnit Example Extension

Copyright (c) 2016-2017, Sebastian Bergmann <sebastian@phpunit.de>.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

 * Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in
   the documentation and/or other materials provided with the
   distribution.

 * Neither the name of Sebastian Bergmann nor the names of his
   contributors may be used to endorse or promote products derived
   from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-----BEGIN PGP SIGNATURE-----

iQIcBAABCgAGBQJb8oKbAAoJEEqjlAhjcsIKMBkP/14UiG8r8YfDlfE35LoGRZP3
ABRW5sbcqdKlSagDD2LR3knIZbthqP0f3Yy83Sj55iFAxrVnVhIp1hOEw6AfhsVA
aFS2EJ3DFFdPiGzxKPe1m6wXacUND7AUwVVd0XTcWEIulbRDht0JeOoSlrfQ45ti
d3F5GaQt/8kryJGkNC25b3a3NTzcUuDsmMT+Lfi045FADEZhmjtDnHbussm0wR0f
uUtGeVUNpEmXgygYHFuCJHyl/pqRh6Aoaw3kqUKldzxCBmGkL9kELjoU51dDrZEu
OzR37l1O/FZgOeDLJmtrjlK5CORwNBvViK5v3tw/bIX7VF+k0pdpSsE5IcRwHoMs
viBy6viDCo6td1L64s+QcONGGHQYQ+ik+rhlwQY0kqVepcYO+Q3U1729VMx7tDM5
BA+hebgZczFwq85mNgG3vZpE9yWqWT9n/eyUkx+ClRN+mQxSM67Nef89GGx4zDx6
DXlEz4mRkLzeok7Rkyy0hoUEgnbJM7dycbgSeHvhwfJYgSTLp+vOBiNYo2Qrj/Aj
Ln44L4yVjxkXetrITZGo+pLZtunCyoxOIK1T1uGu8fB455cWukyOi2Q9aLXoCJI7
zaV+B6dSj4klxLZYUMlJTLkw6o693I1C7Qx+w/zHfH2YgXygWk4uZMAJdjJxSHXF
9uNr4/5ExsUH37z9/D11
=njhs
-----END PGP SIGNATURE-----
<?php
/*
 * This file is part of the PHPUnit Example Extension.
 *
 * (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.
 */

namespace PHPUnit\ExampleExtension;

use PHPUnit\Framework\TestListener as TestListenerInterface;
use PHPUnit\Framework\TestListenerDefaultImplementation;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestCase;

class TestListener implements TestListenerInterface
{
    use TestListenerDefaultImplementation;

    public function startTest(Test $test): void
    {
        if (!$test instanceof TestCase) {
            return;
        }

        // ...
    }

    // ...
}
<?php
/*
 * This file is part of the PHPUnit Example Extension.
 *
 * (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.
 */

namespace PHPUnit\ExampleExtension;

interface Comparable
{
    public function compareTo(Comparable $other): int;
}
<?php
/*
 * This file is part of the PHPUnit Example Extension.
 *
 * (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.
 */

namespace PHPUnit\ExampleExtension;

use SebastianBergmann\Comparator\Comparator as BaseComparator;
use SebastianBergmann\Comparator\ComparisonFailure;

final class Comparator extends BaseComparator
{
    public function accepts($expected, $actual): bool
    {
        return $expected instanceof Comparable && $actual instanceof Comparable;
    }

    public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false, array &$processed = []): void
    {
        if ($expected->compareTo($actual) !== 0) {
            throw new ComparisonFailure(
                $expected,
                $actual,
                $this->exporter->export($expected),
                $this->exporter->export($actual),
                false,
                'Failed asserting that two Comparable objects are equal.'
            );
        }
    }
}
<?php
/*
 * This file is part of the PHPUnit Example Extension.
 *
 * (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.
 */

namespace PHPUnit\ExampleExtension;

use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestListenerDefaultImplementation;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestCase;
use PHPUnit\Util\Printer;

class MyPrinter extends Printer implements TestListener
{
    use TestListenerDefaultImplementation;

    public function startTest(Test $test): void
    {
        if (!$test instanceof TestCase) {
            return;
        }

        $this->write($test->getName() . PHP_EOL);
    }
}
<?php
/*
 * This file is part of the PHPUnit Example Extension.
 *
 * (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.
 */

namespace PHPUnit\ExampleExtension;

use SebastianBergmann\Comparator\Factory as ComparatorFactory;

trait TestCaseTrait
{
    /**
     * @beforeClass
     */
    public static function init(): void
    {
        $factory = ComparatorFactory::getInstance();

        $factory->register(new Comparator);
    }
}
Nb*„Þ°§l*Irú’÷CÖý’C±‹Ÿ+çÄMùeƒ¡‚Á‚À8œ¬wYL¦©È`ÆŸüQ¥(¯Ž®HÙ   GBMB