OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
symfony
/
yaml
/
Tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
08/07/2024 04:34:21 AM
rwxr-xr-x
π
Command
-
08/07/2024 04:34:21 AM
rwxr-xr-x
π
DumperTest.php
30.3 KB
08/07/2024 04:34:00 AM
rw-r--r--
π
Fixtures
-
08/07/2024 04:34:22 AM
rwxr-xr-x
π
InlineTest.php
42.68 KB
08/07/2024 04:34:01 AM
rw-r--r--
π
ParseExceptionTest.php
1.04 KB
08/07/2024 04:34:01 AM
rw-r--r--
π
ParserTest.php
70.18 KB
08/07/2024 04:34:01 AM
rw-r--r--
π
YamlTest.php
1.19 KB
08/07/2024 04:34:01 AM
rw-r--r--
Editing: ParseExceptionTest.php
Close
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Exception\ParseException; class ParseExceptionTest extends TestCase { 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()); } public function testGetMessageWithUnicodeInFilename() { $exception = new ParseException('Error message', 42, 'foo: bar', 'Àâü.yml'); $message = 'Error message in "Àâü.yml" at line 42 (near "foo: bar")'; $this->assertEquals($message, $exception->getMessage()); } }