Skip to content

Commit

Permalink
Fix deprecation notice (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
tifabien authored and theofidry committed Apr 4, 2018
1 parent 250827c commit bc0137b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# This file is part of the Alice package.
#
# (c) Nelmio <[email protected]>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

max_int: !php/const PHP_INT_MAX
6 changes: 5 additions & 1 deletion tests/Nelmio/Alice/Fixtures/Parser/Methods/YamlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ public function testParseReturnsInterpretedConstants()
if (!defined('Symfony\\Component\\Yaml\\Yaml::PARSE_CONSTANT')) {
$this->markTestSkipped('This test needs symfony/yaml v3.2 or higher.');
}
$data = $this->parser->parse(self::$dir.'/file_with_constants.yml');
$fixture = self::$dir.'/file_with_constants.yml';
if (method_exists(\Symfony\Component\Yaml\Yaml::class, 'parseFile')) {
$fixture = self::$dir.'/file_with_constants_sf34.yml';
}
$data = $this->parser->parse($fixture);

$this->assertSame(
[
Expand Down

0 comments on commit bc0137b

Please sign in to comment.