Skip to content

Commit

Permalink
Dropped PHP 5.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 5, 2016
1 parent a6cc572 commit cafaf95
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 51 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.coveralls.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
Makefile export-ignore
phpunit.xml.dist export-ignore
phpunit.xml export-ignore
tests/ export-ignore
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
sudo: false

cache:
directories:
- $COMPOSER_CACHE_DIR
- $HOME/.composer/cache

language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

before_script:
- travis_retry composer self-update
- composer require satooshi/php-coveralls --prefer-source
- if [[ $TRAVIS_PHP_VERSION != "5.6" ]]; then composer install --prefer-dist; fi
- if [[ $TRAVIS_PHP_VERSION = "5.6" ]]; then composer require satooshi/php-coveralls --prefer-dist; fi

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.5" ]; then php vendor/bin/coveralls -v; fi;'
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then php vendor/bin/coveralls -v; fi
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The icanboogie/render package is free software.
It is released under the terms of the following BSD License.

Copyright (c) 2014-2015 by Olivier Laviale
Copyright (c) 2014-2016 by Olivier Laviale
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# customization

PACKAGE_NAME = icanboogie/render
PACKAGE_VERSION = 0.5
PACKAGE_VERSION = 0.6

# do not edit the following lines

usage:
@echo "test: Runs the test suite.\ndoc: Creates the documentation.\nclean: Removes the documentation, the dependencies and the Composer files."

vendor:
@COMPOSER_ROOT_VERSION=$(PACKAGE_VERSION) composer install
@COMPOSER_ROOT_VERSION=$(PACKAGE_VERSION) composer install --prefer-dist

update:
@COMPOSER_ROOT_VERSION=$(PACKAGE_VERSION) composer update
@COMPOSER_ROOT_VERSION=$(PACKAGE_VERSION) composer update --prefer-dist

autoload: vendor
@composer dump-autoload
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ The following helpers are defined:

## Requirements

The package requires PHP 5.5 or later.
The package requires PHP 5.6 or later.



Expand Down Expand Up @@ -235,14 +235,14 @@ The package is continuously tested by [Travis CI](http://about.travis-ci.org/).



[ApplicationTemplateResolver]: http://api.icanboogie.org/bind-render/0.4/class-ICanBoogie.Binding.Render.ApplicationTemplateResolver.html
[ApplicationTemplateResolver]: http://api.icanboogie.org/bind-render/0.5/class-ICanBoogie.Binding.Render.ApplicationTemplateResolver.html
[ModuleTemplateResolver]: http://api.icanboogie.org/module/2.3/class-ICanBoogie.Module.ModuleTemplateResolver.html
[documentation]: http://api.icanboogie.org/render/0.5/
[EngineCollection\AlterEvent]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.EngineCollection.AlterEvent.html
[TemplateResolver\AlterEvent]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.TemplateResolver.AlterEvent.html
[Renderer]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.Renderer.AlterEvent.html
[Renderer\AlterEvent]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.Renderer.AlterEvent.html
[TemplateResolver]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.TemplateResolver.AlterEvent.html
[TemplateResolverTrait]: http://api.icanboogie.org/render/0.5/class-ICanBoogie.Render.TemplateResolverTrait.AlterEvent.html
[documentation]: http://api.icanboogie.org/render/0.6/
[EngineCollection\AlterEvent]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.EngineCollection.AlterEvent.html
[TemplateResolver\AlterEvent]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.TemplateResolver.AlterEvent.html
[Renderer]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.Renderer.AlterEvent.html
[Renderer\AlterEvent]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.Renderer.AlterEvent.html
[TemplateResolver]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.TemplateResolver.AlterEvent.html
[TemplateResolverTrait]: http://api.icanboogie.org/render/0.6/class-ICanBoogie.Render.TemplateResolverTrait.AlterEvent.html
[ICanBoogie]: https://github.com/ICanBoogie\ICanBoogie
[Patron engine]: https://github.com/Icybee/PatronViewSupport
9 changes: 3 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@
},
"minimum-stability": "dev",
"require": {
"php": ">=5.5.0",
"icanboogie/prototype": "^2.3.0",
"icanboogie/event": "^1.4.0|^2.0.0"
},
"require-dev": {
"icanboogie/event": "^2.0.0"
"php": ">=5.6",
"icanboogie/prototype": "^2.3",
"icanboogie/event": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
25 changes: 25 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php"
>
<testsuites>
<testsuite name="icanboogie/render">
<directory>./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib</directory>
</whitelist>
</filter>
</phpunit>
25 changes: 0 additions & 25 deletions phpunit.xml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion tests/helpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class helpersTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
EventCollectionProvider::using(function() {
EventCollectionProvider::define(function() {

static $collection;

Expand Down

0 comments on commit cafaf95

Please sign in to comment.