ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ParseExceptionTest.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\Yaml\Tests
;
13
14
use
Symfony\Component\Yaml\Exception\ParseException
;
15
16
class
ParseExceptionTest
extends
\PHPUnit_Framework_TestCase
17
{
18
public
function
testGetMessage
()
19
{
20
$exception =
new
ParseException
(
'Error message'
, 42,
'foo: bar'
,
'/var/www/app/config.yml'
);
21
$message
=
'Error message in "/var/www/app/config.yml" at line 42 (near "foo: bar")'
;
22
23
$this->assertEquals(
$message
, $exception->getMessage());
24
}
25
26
public
function
testGetMessageWithUnicodeInFilename
()
27
{
28
$exception =
new
ParseException
(
'Error message'
, 42,
'foo: bar'
,
'äöü.yml'
);
29
$message
=
'Error message in "äöü.yml" at line 42 (near "foo: bar")'
;
30
31
$this->assertEquals(
$message
, $exception->getMessage());
32
}
33
}
Symfony\Component\Yaml\Tests
Definition:
DumperTest.php:12
PHPUnit_Framework_TestCase
ParseException
$message
catch(Exception $e) $message
Definition:
saml2-logout.php:34
Symfony\Component\Yaml\Tests\ParseExceptionTest\testGetMessage
testGetMessage()
Definition:
ParseExceptionTest.php:18
Symfony\Component\Yaml\Tests\ParseExceptionTest\testGetMessageWithUnicodeInFilename
testGetMessageWithUnicodeInFilename()
Definition:
ParseExceptionTest.php:26
Symfony\Component\Yaml\Exception\ParseException
Exception class thrown when an error occurs during parsing.
Definition:
ParseException.php:19
Symfony\Component\Yaml\Tests\ParseExceptionTest
Definition:
ParseExceptionTest.php:16
libs
composer
vendor
symfony
yaml
Tests
ParseExceptionTest.php
Generated on Sat Jan 18 2025 19:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)