Skip to content

teewurst/phpunit-trump-extension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phpunit Trump Extension

The "Trump Extension" will act as if there are no tests. This is because if you don't have tests, they can't fail right?

Installation

You can install Trump Extension via Composer

composer require icanhazstring/phpunit-trump-extension:dev-main

Usage

Just enable it by adding the following to your test suite's phpunit.xml file:

<phpunit bootstrap="vendor/autoload.php">
    ...
    <listeners>
        <listener class="icanhazstring\TrumpExtension\TrumpTestListener" />
    </listeners>
</phpunit>

Now run your test suite as normal.

In CI tools environments, test suites execution will end with No Tests execute! ( exit code 0) whether or not your assertions are false or unwanted exceptions are thrown.

License

phpunit-trump-extension is available under the MIT License.

About

"If We Stop Testing, We’d Have Fewer Cases"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%