Summer Sale! All accounts are 50% off this week.

untymage's avatar

Dynamically change values of phpunit.xml

How can i tell phpunit to apply this setting for only certain classes and not for all?

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         colors="true">
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="DB_CONNECTION" value="sqlite"/>
        <env name="DB_DATABASE" value=":memory:"/>
    </php>
</phpunit>
0 likes
2 replies
untymage's avatar

@tisuchi Not the best way, But good enough for me :D

thanks for mention this

Please or to participate in this conversation.