PHP Classes

File: test/Services/Http/HttpConfigTest.php

Recommend this page to a friend!
  Classes of Artur Graniszewski   ZEUS for PHP   test/Services/Http/HttpConfigTest.php   Download  
File: test/Services/Http/HttpConfigTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: ZEUS for PHP
Manage the execution of multiple parallel tasks
Author: By
Last change:
Date: 7 years ago
Size: 744 bytes
 

Contents

Class file image Download
<?php

namespace ZeusTest\Services\Http;

use
Zeus\ServerService\Http\Config;
use
ZeusTest\Helpers\AbstractConfigTestHelper;

class
ProcessManagerConfigTest extends AbstractConfigTestHelper
{
    protected
$configClass = Config::class;

    public function
configDataProvider()
    {
        return [
            [
rand(1, 10000), 'listen_port', 'ListenPort'],
            [
md5((string) microtime(true)), 'listen_address', 'ListenAddress'],
            [
true, 'enable_keep_alive', 'KeepAliveEnabled'],
            [
false, 'enable_keep_alive', 'KeepAliveEnabled'],
            [
rand(1, 10000), 'keep_alive_timeout', 'KeepAliveTimeout'],
            [
rand(1, 10000), 'max_keep_alive_requests_limit', 'MaxKeepAliveRequestsLimit']
        ];
    }
}