for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace itertools;
use PHPUnit_Framework_TestCase;
class LockingIteratorTest extends PHPUnit_Framework_TestCase
{
/** @test */
public function testWithoutLockerNameMapper()
$it = new RangeIterator(0, 10);
$sum = 0;
foreach (new LockingIterator($it, sys_get_temp_dir()) as $v) {
$sum += $v;
}
$this->assertEquals(55, $sum);
public function testWithLockerNameMapper()
foreach (new LockingIterator($it, sys_get_temp_dir(), function($v) { return 1; }) as $v) {
$v
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.