for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CHStudio\Raven\Validator\Expectation;
use ArrayIterator;
use IteratorAggregate;
/**
* @implements IteratorAggregate<int, ResponseExpectationInterface>
*/
class ExpectationCollection implements IteratorAggregate
{
* @var ResponseExpectationInterface[]
private readonly array $expectations;
public function __construct(
ResponseExpectationInterface ...$expectations
) {
$this->expectations = $expectations;
expectations
CHStudio\Raven\Validator...n\ExpectationCollection
}
* @return ArrayIterator<int, ResponseExpectationInterface>
public function getIterator(): ArrayIterator
return new ArrayIterator($this->expectations);