summaryrefslogtreecommitdiffstats
path: root/php-justinrainbow-json-schema-pr292.patch
blob: 80e17db2e163a8a07ae33c66037cfed893abe63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Adapted from v2.0.5 from: 


From 14c9472c2ba0c8fdd5d99dc634f4db976d51237f Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Thu, 21 Jul 2016 18:37:10 +0200
Subject: [PATCH] Fix #291 failed tests with lestest PHP

Since 5.6.24, 7.0.9, 7.1.0beta1, negative timestamps are valid.
---
 tests/Constraints/FormatTest.php | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/Constraints/FormatTest.php b/tests/Constraints/FormatTest.php
index f604c08..3ffe5b1 100644
--- a/tests/Constraints/FormatTest.php
+++ b/tests/Constraints/FormatTest.php
@@ -141,7 +141,6 @@ class FormatTest extends BaseTestCase
             array('1999-01-11T00:00:00+100', 'date-time'),
             array('1999-01-11T00:00:00+1:00', 'date-time'),
 
-            array('-1', 'utc-millisec'),
             array(PHP_INT_MAX, 'utc-millisec'),
 
             array('grey', 'color'),