php-vcr / phpunit-testlistener-vcr

Integrates PHPUnit with PHP-VCR.
MIT License
61 stars 50 forks source link

Options via listener config #25

Closed magnusnordlander closed 2 years ago

magnusnordlander commented 6 years ago

This PR allows the user to set (most) PHP-VCR options via the PHPUnit listener configuration.

Example configuration:

    <listeners>
        <listener class="VCR\PHPUnit\TestListener\VCRTestListener">
            <arguments>
                <array>
                    <element key="mode">
                        <string>none</string>
                    </element>
                    <element key="cassettePath">
                        <string>tests/cassettes/</string>
                    </element>
                </array>
            </arguments>
        </listener>
    </listeners>