Hoa central
Public Member Functions | List of all members
Hoa\Zombie\Test\Unit\Zombie Class Reference
Inheritance diagram for Hoa\Zombie\Test\Unit\Zombie:

Public Member Functions

 case_without_fpm ()
 
 case_with_fpm ()
 
- Public Member Functions inherited from Hoa\Test\Unit\Suite
 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Test suite of the zombie class.

Definition at line 50 of file Zombie.php.

Member Function Documentation

Hoa\Zombie\Test\Unit\Zombie::case_with_fpm ( )

Definition at line 70 of file Zombie.php.

71  {
72  $this
73  ->given(
74  $this->function->function_exists = function ($name) {
75  return true;
76  },
77  $this->function->fastcgi_finish_request = true
78  )
79  ->when($result = LUT::fork())
80  ->boolean($result)
81  ->isTrue();
82  }
Hoa\Zombie\Test\Unit\Zombie::case_without_fpm ( )

Definition at line 52 of file Zombie.php.

53  {
54  $this
55  ->given(
56  $this->function->function_exists = function ($name) {
57  if ('fastcgi_finish_request' === $name) {
58  return false;
59  }
60 
61  return true;
62  }
63  )
64  ->exception(function () {
65  LUT::fork();
66  })
67  ->isInstanceOf('Hoa\Zombie\Exception');
68  }

The documentation for this class was generated from the following file: