ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
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
php
Symfony\Component\Yaml\Tests\ParseExceptionTest
Definition:
ParseExceptionTest.php:16
libs
composer
vendor
symfony
yaml
Tests
ParseExceptionTest.php
Generated on Fri Jan 17 2025 19:00:55 for ILIAS by
1.8.13 (using
Doxyfile
)