minor #17348 [Yaml] Fix tests on PHP 7.0.2 (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Yaml] Fix tests on PHP 7.0.2

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1234
| License       | MIT
| Doc PR        | -

Related to https://bugs.php.net/66179 that has been fixed in 7.0.2

Commits
-------

902f6dd [Yaml] Fix tests on PHP 7.0.2
This commit is contained in:
Nicolas Grekas 2016-01-13 10:03:05 +01:00
commit 26af0ae56b
2 changed files with 4 additions and 4 deletions

View File

@ -515,7 +515,7 @@ yaml: |
php: |
array(
'canonical' => 12345,
'decimal' => 12345,
'decimal' => 12345.0,
'octal' => 014,
'hexadecimal' => 0xC
)
@ -1536,7 +1536,7 @@ yaml: |
php: |
array(
'canonical' => 12345,
'decimal' => 12345,
'decimal' => 12345.0,
'octal' => 12,
'hexadecimal' => 12
)

View File

@ -182,8 +182,8 @@ php: |
array(
'zero' => 0,
'simple' => 12,
'one-thousand' => 1000,
'negative one-thousand' => -1000
'one-thousand' => 1000.0,
'negative one-thousand' => -1000.0
)
---
test: Integers as Map Keys