How to exclude file from PHPUnit test suite in xml config?

前端 未结 7 628
夕颜
夕颜 2021-02-02 06:39

I have following, very simple, XML config for PHPUnit:


    
        

        
相关标签:
7条回答
  • 2021-02-02 07:32

    For Phpunit 6.5, exclude is under whitelist

    <filter>
        <whitelist>
            <directory suffix=".php">src</directory>
            <exclude>
                <directory>src/Migrations</directory>
                <file>src/kernel.php</file>
            </exclude>
        </whitelist>
    </filter>
    
    0 讨论(0)
提交回复
热议问题