<?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    (   phpunit-example-extension-3.0.3.phar.asc!  aÜ3Z!  ƒ¶         LICENSE  aÜ3Z  ÷Xá¶         manifest.xml7  aÜ3Z7  œ0ö×¶      (   phpunit-example-extension/Comparable.phpp  aÜ3Zp  ÈOé¹¶      (   phpunit-example-extension/Comparator.phpc  aÜ3Zc  ‡´f2¶      +   phpunit-example-extension/ResultPrinter.phpó  aÜ3Zó  îår$¶      +   phpunit-example-extension/TestCaseTrait.php2  aÜ3Z2  ™ïby¶      *   phpunit-example-extension/TestListener.php×  aÜ3Z×  ¨~ æ¶      -----BEGIN PGP SIGNATURE-----

iQIcBAABCgAGBQJaM9udAAoJEEqjlAhjcsIKi1UQAJH46oFjlBAy8DTaRaFGcAC1
wgB7zcruJg2wjXro9GoLQAdZT761SYB0Dj2nBqykZD8oKLFpLKpb3PhjjFcZeE+2
WfcbF3gudhYMjkm9zu20NP/FOkYKk1xPqr8JY5WVKUemcgPKYrGjIW7T2TFHCCSO
sS0CrSKRQD1T/fJuYIV+5YKWUbKqFjLkBaN7wwmRSt6WOra5H3s0FM01y9Ug7qUW
XK7MGSXJE/aSHVlJ+rcv+Be/LWTkZuLcZUhwmGrv+luAHEvP83F7wutAA1VTZDUw
k7132OFC3I6zYI+StXTElvQpt8NQ4FLRJ1fRPS1nH+j2+GWML5l++vStG+yGIKH0
/w+3N2hQh4cRjBEth3/cuX426FnhsjP8IUm0arRfnZyt++rtgryn2LXOaEFCRBRc
gyy1WmVKzof8bf3a++dBLsrZt54fra0ejKiVzFZP7esP6DbDBnw0ms2/jhz4vxZR
RGiGmEt7tku8hIvqTE9Qh3YMHAWejP3eCV0YkmjQlFvvNcW8ckAYyw34s2O0Cuyl
KXfsv26hTHRbL6mvCV1AjAD/IZgLz7wIQ5yRKJK5agU/Ts1ukYdLwSFMZ6DxKIAt
x/QzhtqiN0Dt12TSsAI+3ihHjP/dtgOxCBF+9Iq+Pnsq6TspoiAJ4qkEg9lPc8DI
bQwWz9c0pMP83tG68VWM
=c1Ni
-----END PGP SIGNATURE-----
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.
<?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"/>
    </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>
<?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);
    }
}
<?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;
        }

        // ...
    }

    // ...
}
=àu›@Šå|õ™Ö®ÃÙàm¥p0u5f˜‘FHx:-÷X%i£4îúïâ2�‘�ižü¯Bü¤ŠY&BÖ   GBMB