Skip to content

Commit

Permalink
Rename NormalizeIteratorAggregate class.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 25, 2022
1 parent a5262ed commit 9b4d23b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @implements IteratorAggregate<int, T>
*/
final class NormalizeIteratorAggregate implements IteratorAggregate
final class NormalizeIterableAggregate implements IteratorAggregate
{
/**
* @var iterable<TKey, T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@

namespace tests\loophp\iterators;

use loophp\iterators\NormalizeIteratorAggregate;
use loophp\iterators\NormalizeIterableAggregate;
use PHPUnit\Framework\TestCase;

/**
* @internal
* @coversDefaultClass \loophp\iterators
*/
final class NormalizeIteratorAggregateTest extends TestCase
final class NormalizeIterableAggregateTest extends TestCase
{
public function testBasic(): void
{
$input = static function () {
yield from array_combine(range('a', 'c'), range('a', 'c'));
};

$iterator = new NormalizeIteratorAggregate($input());
$iterator = new NormalizeIterableAggregate($input());

$expected = ['a', 'b', 'c'];
self::assertSame($expected, iterator_to_array($iterator));
Expand Down

0 comments on commit 9b4d23b

Please sign in to comment.