PHP Class lithium\test\Integration

Integration tests are for determining that different parts of the framework will work together (integrate) as expected. An example of a common integration test would be for ensuring that an adapter interacts correctly with the class it is designed to interface with. Example: the Session class and the Php adapter. Unit tests will ensure that both the Session and Php classes behave correctly under isolation, while an integration test ensures that the two classes interact and interface correctly.
Inheritance: extends Unit
Datei anzeigen Open project: unionofrad/lithium Class Usage Examples

Protected Methods

Method Description
_hasNetwork ( array $config = [] ) : boolean Checks for a working internet connection.
_init ( ) : void Auto init for applying Integration filter to this test class.

Method Details

_hasNetwork() protected method

This method is used to check for a working connection to google.com, both testing for proper DNS resolution and reading the actual URL.
protected _hasNetwork ( array $config = [] ) : boolean
$config array Override the default URL to check.
return boolean True if a network connection is established, false otherwise.

_init() protected method

Auto init for applying Integration filter to this test class.
protected _init ( ) : void
return void