PHP 클래스 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.
상속: extends Unit
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

보호된 메소드들

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

메소드 상세

_hasNetwork() 보호된 메소드

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.
리턴 boolean True if a network connection is established, false otherwise.

_init() 보호된 메소드

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