| @@ 83-94 (lines=12) @@ | ||
| 80 | /** |
|
| 81 | * @covers PHPUnit_Framework_Assert::assertContains |
|
| 82 | */ |
|
| 83 | public function testAssertArrayContainsString() |
|
| 84 | { |
|
| 85 | $this->assertContains('foo', array('foo')); |
|
| 86 | ||
| 87 | try { |
|
| 88 | $this->assertContains('foo', array('bar')); |
|
| 89 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 90 | return; |
|
| 91 | } |
|
| 92 | ||
| 93 | $this->fail(); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * @covers PHPUnit_Framework_Assert::assertContains |
|
| @@ 446-457 (lines=12) @@ | ||
| 443 | /** |
|
| 444 | * @covers PHPUnit_Framework_Assert::assertContains |
|
| 445 | */ |
|
| 446 | public function testAssertIteratorContainsString() |
|
| 447 | { |
|
| 448 | $this->assertContains('foo', new TestIterator(array('foo'))); |
|
| 449 | ||
| 450 | try { |
|
| 451 | $this->assertContains('foo', new TestIterator(array('bar'))); |
|
| 452 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 453 | return; |
|
| 454 | } |
|
| 455 | ||
| 456 | $this->fail(); |
|
| 457 | } |
|
| 458 | ||
| 459 | /** |
|
| 460 | * @covers PHPUnit_Framework_Assert::assertContains |
|