You are here

public function Util_XMLTest::testAssertValidKeysDefaultValuesA in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Util/XMLTest.php \Util_XMLTest::testAssertValidKeysDefaultValuesA()

File

vendor/phpunit/phpunit/tests/Util/XMLTest.php, line 37

Class

Util_XMLTest
@since Class available since Release 3.3.0 @covers PHPUnit_Util_XML

Code

public function testAssertValidKeysDefaultValuesA() {
  $options = array(
    'testA' => 1,
    'testB' => 2,
  );
  $valid = array(
    'testA' => 23,
    'testB' => 24,
    'testC' => 25,
  );
  $expected = array(
    'testA' => 1,
    'testB' => 2,
    'testC' => 25,
  );
  $validated = PHPUnit_Util_XML::assertValidKeys($options, $valid);
  $this
    ->assertEquals($expected, $validated);
}