public function Framework_Constraint_JsonMatches_ErrorMessageProviderTest::testDetermineJsonError

@dataProvider determineJsonErrorDataprovider @covers PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError

File

drupal/core/vendor/phpunit/phpunit/Tests/Framework/Constraint/JsonMatches/ErrorMessageProviderTest.php, line 71

Class

Framework_Constraint_JsonMatches_ErrorMessageProviderTest
@package PHPUnit @author Bastian Feder <php@bastian-feder.de> @copyright 2011-2013 Bastian Feder <php@bastian-feder.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause @link …

Code

public function testDetermineJsonError($expected, $error, $prefix) {
  $this
    ->assertEquals($expected, PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider::determineJsonError($error, $prefix));
}