From 63d5fb1ee4ae5345fc9b00ef7d499448d9954741 Mon Sep 17 00:00:00 2001 From: Henrique Moody Date: Thu, 26 Feb 2015 17:40:03 -0300 Subject: [PATCH 1/2] Add PHP 7 to Travis builds Fix wrong octal notation in "HexRgbColor" test case --- .travis.yml | 1 + tests/Rules/HexRgbColorTest.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7aefc0a22..a4f32239f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ php: - 5.4 - 5.5 - 5.6 + - 7 - hhvm - hhvm-nightly diff --git a/tests/Rules/HexRgbColorTest.php b/tests/Rules/HexRgbColorTest.php index 7549fbddd..4506d3507 100644 --- a/tests/Rules/HexRgbColorTest.php +++ b/tests/Rules/HexRgbColorTest.php @@ -47,8 +47,8 @@ public function providerForInvalidHexRgbColor() array('#S'), array('1234'), array('foo'), - array(000099), - array(005), + array(0x39F), + array(05), array(1), array(443), array(array()), From 6dda44ce360c4203d01dce6fa8d0489181c06a3b Mon Sep 17 00:00:00 2001 From: Henrique Moody Date: Thu, 26 Feb 2015 18:01:48 -0300 Subject: [PATCH 2/2] Add PHP and HHVM supported versions on docs --- README.md | 2 +- docs/INSTALL.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a68238f6..8dbf0dcad 100755 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ - [Granularity control](docs/README.md#validation-methods) for advanced reporting. - Almost 100 (fully tested) validators. - [A concrete API](docs/CONCRETE_API.md) for non fluent usage. - +- Works on PHP 5.3+ or HHVM 3.3+ ## Table of contents diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 4d2012fd4..7d7d17f1a 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -7,6 +7,8 @@ you can install it using [Composer](http://getcomposer.org). composer require respect/validation ``` +[PHP](https://php.net) 5.3+ or [HHVM](http://hhvm.com) 3.3+ are required. + *** See also: