From ddf3a4e57f1172428664ae0c26a2b821e6a5d737 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Wed, 18 Jan 2017 18:39:15 -0500 Subject: [PATCH] Require later SCSS PHP for tests No longer test PHP 5.3 --- .travis.yml | 1 - composer.json | 2 +- tests/ScssSourceTest.php | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2659d19..0ef27a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ php: - 5.6 - 5.5 - 5.4 - - 5.3 - hhvm matrix: diff --git a/composer.json b/composer.json index d0a35f7..84128f8 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "require-dev": { "firephp/firephp-core": "~0.4.0", "leafo/lessphp": "~0.4.0", - "leafo/scssphp": "^0.3.0", + "leafo/scssphp": "~0.6.6", "meenie/javascript-packer": "~1.1", "phpunit/phpunit": "4.8.*", "tedivm/jshrink": "~1.1.0" diff --git a/tests/ScssSourceTest.php b/tests/ScssSourceTest.php index c37ca36..a8123dd 100644 --- a/tests/ScssSourceTest.php +++ b/tests/ScssSourceTest.php @@ -4,6 +4,10 @@ class ScssSourceTest extends TestCase { public function setUp() { + if (version_compare(PHP_VERSION, '5.4.0', '<')) { + $this->markTestSkipped('scssphp is not compatible with this PHP version.'); + } + $this->realDocRoot = $_SERVER['DOCUMENT_ROOT']; $_SERVER['DOCUMENT_ROOT'] = self::$document_root; }