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.
Показать файл
Открыть проект
Примеры использования класса
Защищенные методы
Метод |
Описание |
|
_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. |
Auto init for applying Integration filter to this test class.