for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DjThossi\SmokeTestingPhp\Collection;
use DjThossi\SmokeTestingPhp\Result\Result;
class ResultCollection extends BaseCollection
{
/**
* @param Result $result
*/
public function addResult(Result $result)
$this->elements[] = $result;
}
* @return array
public function asDataProviderArray()
$retValue = [];
/** @var Result $result */
foreach ($this as $key => $result) {
$key = sprintf('#%d: %s', $key, $result->getUrl()->asString());
$retValue[$key] = [$result];
return $retValue;