|
@@ 3374-3380 (lines=7) @@
|
| 3371 |
|
/** |
| 3372 |
|
* @covers PHPUnit_Framework_Constraint_SameSize |
| 3373 |
|
*/ |
| 3374 |
|
public function testConstraintSameSizeWithAnIteratorWhichDoesNotImplementCountable() |
| 3375 |
|
{ |
| 3376 |
|
$constraint = new PHPUnit_Framework_Constraint_SameSize(new TestIterator(array(1, 2, 3, 4, 5))); |
| 3377 |
|
|
| 3378 |
|
$this->assertTrue($constraint->evaluate(new TestIterator(array(6, 7, 8, 9, 10)), '', true)); |
| 3379 |
|
$this->assertFalse($constraint->evaluate(new TestIterator(array(1, 2, 3, 4)), '', true)); |
| 3380 |
|
} |
| 3381 |
|
|
| 3382 |
|
/** |
| 3383 |
|
* @covers PHPUnit_Framework_Constraint_SameSize |
|
@@ 3385-3391 (lines=7) @@
|
| 3382 |
|
/** |
| 3383 |
|
* @covers PHPUnit_Framework_Constraint_SameSize |
| 3384 |
|
*/ |
| 3385 |
|
public function testConstraintSameSizeWithAnObjectImplementingCountable() |
| 3386 |
|
{ |
| 3387 |
|
$constraint = new PHPUnit_Framework_Constraint_SameSize(new ArrayObject(array(1, 2, 3, 4, 5))); |
| 3388 |
|
|
| 3389 |
|
$this->assertTrue($constraint->evaluate(new ArrayObject(array(6, 7, 8, 9, 10)), '', true)); |
| 3390 |
|
$this->assertFalse($constraint->evaluate(new ArrayObject(array(1, 2, 3, 4)), '', true)); |
| 3391 |
|
} |
| 3392 |
|
|
| 3393 |
|
/** |
| 3394 |
|
* @covers PHPUnit_Framework_Constraint_SameSize |