Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (35 sloc) 0.778 kb
<?php
class TestClassResult implements IteratorAggregate
{
protected $results;
public function __construct()
{
$this->results = array();
}
public function addResult(TestResult $result)
{
$this->results[] = $result;
}
public function getIterator()
{
return new ArrayIterator($this->results);
}
public function hasFailingTests()
{
foreach ($this->results as $result) {
if ($result->isFailure()) {
return true;
}
}
return false;
}
protected $testClass;
public function setClass($className)
{
$this->testClass = $className;
}
public function getClass()
{
return $this->testClass;
}
}
Jump to Line
Something went wrong with that request. Please try again.