endtoend-test-psl/tests/Psl/Collection/VectorTest.php
2020-02-21 02:03:40 +01:00

30 lines
542 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Collection;
use Psl\Collection\Vector;
final class VectorTest extends AbstractVectorTest
{
/**
* The Vector class used for values, keys .. etc.
*
* @psalm-var class-string<Vector>
*/
protected string $vectorClass = Vector::class;
/**
* @template T
*
* @psalm-param iterable<T> $items
*
* @psalm-return Vector<T>
*/
protected function create(iterable $items): Vector
{
return new Vector($items);
}
}