| @@ 602-613 (lines=12) @@ | ||
| 599 | /** |
|
| 600 | * @covers PHPUnit_Framework_Assert::assertContainsOnly |
|
| 601 | */ |
|
| 602 | public function testAssertArrayContainsOnlyIntegers() |
|
| 603 | { |
|
| 604 | $this->assertContainsOnly('integer', array(1, 2, 3)); |
|
| 605 | ||
| 606 | try { |
|
| 607 | $this->assertContainsOnly('integer', array('1', 2, 3)); |
|
| 608 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 609 | return; |
|
| 610 | } |
|
| 611 | ||
| 612 | $this->fail(); |
|
| 613 | } |
|
| 614 | ||
| 615 | /** |
|
| 616 | * @covers PHPUnit_Framework_Assert::assertNotContainsOnly |
|
| @@ 618-629 (lines=12) @@ | ||
| 615 | /** |
|
| 616 | * @covers PHPUnit_Framework_Assert::assertNotContainsOnly |
|
| 617 | */ |
|
| 618 | public function testAssertArrayNotContainsOnlyIntegers() |
|
| 619 | { |
|
| 620 | $this->assertNotContainsOnly('integer', array('1', 2, 3)); |
|
| 621 | ||
| 622 | try { |
|
| 623 | $this->assertNotContainsOnly('integer', array(1, 2, 3)); |
|
| 624 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
|
| 625 | return; |
|
| 626 | } |
|
| 627 | ||
| 628 | $this->fail(); |
|
| 629 | } |
|
| 630 | ||
| 631 | /** |
|
| 632 | * @covers PHPUnit_Framework_Assert::assertContainsOnly |
|