You are here

public function PHP_CodeCoverageTest::testMerge in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php \PHP_CodeCoverageTest::testMerge()

@covers PHP_CodeCoverage::getData @covers PHP_CodeCoverage::merge

File

vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php, line 292

Class

PHP_CodeCoverageTest
Tests for the PHP_CodeCoverage class.

Code

public function testMerge() {
  $coverage = $this
    ->getCoverageForBankAccountForFirstTwoTests();
  $coverage
    ->merge($this
    ->getCoverageForBankAccountForLastTwoTests());
  $this
    ->assertEquals($this
    ->getExpectedDataArrayForBankAccount(), $coverage
    ->getData());
}