DropWhileIteratorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMainFunctionality() 0 5 1
1
<?php
2
3
namespace itertools;
4
5
use PHPUnit_Framework_TestCase;
6
7
8
class DropWhileIteratorTest extends PHPUnit_Framework_TestCase
9
{
10
	/** @test */
11
	public function testMainFunctionality()
12
	{
13
		$i = new DropWhileIterator(array(1, 2, 3, 2, 1), function($v) { return $v < 3;});
14
		$this->assertEquals(array(3, 2, 1), iterator_to_array($i, false));
15
	}
16
}
17
18