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

Public Member Functions

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

Detailed Description

Class .

Test suite of the infinite iterator.

Definition at line 50 of file Infinite.php.

Member Function Documentation

Hoa\Iterator\Test\Unit\Infinite::case_classic ( )

Definition at line 52 of file Infinite.php.

53  {
54  $this
55  ->given(
56  $iterator = new LUT\Map(['a']),
57  $infinite = new LUT\Infinite($iterator),
58  $limit = new LUT\Limit($infinite, 0, 100)
59  )
60  ->when($result = iterator_to_array($limit, false))
61  ->then
62  ->array($result)
63  ->isEqualTo(array_fill(0, 100, 'a'))
64  ->size
65  ->isEqualTo(100);
66  }

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