public function testIterable() { $result = $this->getTestResult(); $i = 0; foreach ($result as $v) { $i += $v->id; } $this->assertSame(26, $i); }