public function Util_XMLTest::testAssertValidKeysDefaultValuesA

File

drupal/core/vendor/phpunit/phpunit/Tests/Util/XMLTest.php, line 81

Class

Util_XMLTest
@package PHPUnit @author Mike Naberezny <mike@maintainable.com> @author Derek DeVries <derek@maintainable.com> @author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2013 Sebastian Bergmann…

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);
}