Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPUnit Test Extension

Provides a listener which allows PHPUnit to load extensions without using inheritance. Extensions provide common convenience methods to your tests.

Installation

Configuration

To configure the listener simply register it in your phpunit.xml.dist file

<listeners>
    	<listener class="\GiftCards\TestExtension\Listener\AddTestCaseExtensionsListener">
        	<arguments>
         		<array>
            		<element>
              			<string>\GiftCards\Extensions\EntityExtension</string>
              			<string>\GiftCards\Extensions\OmniOrmExtension</string>
            		</element>
          		</array>
        	</arguments>
    	</listener>
 	</listeners>

Usage

From your test case you can use any of the public methods that are available from within your extension.

About

Provides a listener which allows PHPUnit to load extensions without using inheritance. Extensions provide common convenience methods to your tests.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages