You are here

public function ParseExceptionTest::testGetMessage in Lockr 7.3

File

vendor/symfony/yaml/Tests/ParseExceptionTest.php, line 19

Class

ParseExceptionTest

Namespace

Symfony\Component\Yaml\Tests

Code

public function testGetMessage() {
  $exception = new ParseException('Error message', 42, 'foo: bar', '/var/www/app/config.yml');
  $message = 'Error message in "/var/www/app/config.yml" at line 42 (near "foo: bar")';
  $this
    ->assertEquals($message, $exception
    ->getMessage());
}