mirror of
https://github.com/ivuorinen/palette.git
synced 2026-01-26 03:24:08 +00:00
Now actually running tests, dropping PHP5.5
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
composer.lock
|
||||
!composer.json
|
||||
vendor
|
||||
build
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
language: php
|
||||
php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- nightly
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 5.5
|
||||
- php: 5.6
|
||||
- php: nightly
|
||||
fast_finish: true
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
"classmap": ["src/"]
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.2.0"
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.7"
|
||||
"phpunit/phpunit": "^5.7 || ^6.3"
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Test Suite">
|
||||
<directory>./tests/</directory>
|
||||
<directory suffix="Test.php" phpVersion="5.6.0" phpVersionOperator=">=">./tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class PaletteTests extends \PHPUnit_Framework_TestCase
|
||||
class PaletteTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_class_is_found_and_has_default_attributes()
|
||||
{
|
||||
@@ -16,7 +16,7 @@ class PaletteTests extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function test_known_images()
|
||||
{
|
||||
$location = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;
|
||||
$location = __DIR__ . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;
|
||||
$images = ['black.png' => '000000', 'red.png' => 'CC3333'];
|
||||
|
||||
foreach ($images as $imageFile => $hex) {
|
||||
Reference in New Issue
Block a user