Skip to content

Commit

Permalink
Bumped requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 1, 2017
1 parent fc1df18 commit d515ddc
Show file tree
Hide file tree
Showing 30 changed files with 49 additions and 54 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
@@ -1,14 +1,13 @@
sudo: false
language: php
php:
- 7.0
- 7.1
- 5.6
- 5.4
- nightly
matrix:
fast_finish: true
before_script:
- ./scripts/travis/setup.sh
- php -i
script:
- ./scripts/travis/run-tests.sh
after_script:
Expand Down
26 changes: 13 additions & 13 deletions bin/source-optimizer
Expand Up @@ -2,7 +2,7 @@
<?php
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down Expand Up @@ -41,7 +41,7 @@ class CommandLineRunner
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down Expand Up @@ -118,7 +118,7 @@ abstract class ContextHelper
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand All @@ -144,7 +144,7 @@ abstract class Helper
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down Expand Up @@ -204,7 +204,7 @@ class Optimizer
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand All @@ -214,7 +214,7 @@ abstract class Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down Expand Up @@ -426,7 +426,7 @@ class TokenStream implements ArrayAccess,Iterator
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand All @@ -437,7 +437,7 @@ if(!\class_exists(__NAMESPACE__.'\\CommandLineRunner'))
CommandLineRunner::run();
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down Expand Up @@ -471,7 +471,7 @@ class ConcatenateConstantStrings extends Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down Expand Up @@ -561,7 +561,7 @@ class EnforceFQN extends Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down Expand Up @@ -647,7 +647,7 @@ class MinifyVars extends Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down Expand Up @@ -853,7 +853,7 @@ class RemoveBraces extends Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down Expand Up @@ -930,7 +930,7 @@ class RemoveComments extends Pass
}
/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
7 changes: 5 additions & 2 deletions composer.json
@@ -1,13 +1,16 @@
{
"name": "s9e/source-optimizer",
"version": "0.2",
"version": "0.3",
"type": "library",
"description": "",
"homepage": "https://github.com/s9e/SourceOptimizer/",
"keywords": ["source","optimizer"],
"license": "MIT",
"require": {
"php": ">=5.4"
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/installComposer.sh
Expand Up @@ -3,7 +3,7 @@
cd $(dirname "$0")
cd ../..

if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
if [ "$TRAVIS_PHP_VERSION" = "7.1" ]
then
composer require -q --no-interaction "satooshi/php-coveralls:*"
fi
Expand Down
6 changes: 3 additions & 3 deletions scripts/travis/run-tests.sh
Expand Up @@ -3,9 +3,9 @@
cd $(dirname "$0")
cd ../..

if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
if [ "$TRAVIS_PHP_VERSION" = "7.1" ]
then
phpunit --coverage-clover /tmp/clover.xml
./vendor/bin/phpunit --coverage-clover /tmp/clover.xml
else
phpunit
./vendor/bin/phpunit
fi
5 changes: 2 additions & 3 deletions scripts/travis/setup.sh
Expand Up @@ -5,12 +5,11 @@ cd $(dirname "$0")
echo "Installing Composer"
./installComposer.sh

if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
if [ "$TRAVIS_PHP_VERSION" = "7.1" ]
then
echo "Installing Scrutinizer"
./installScrutinizer.sh
elif [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "nightly" ]
then
else
echo "Removing XDebug"
phpenv config-rm xdebug.ini
fi
2 changes: 1 addition & 1 deletion src/CommandLineRunner.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/ContextHelper.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/Helper.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/Optimizer.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/Pass.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/ConcatenateConstantStrings.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/EnforceFQN.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/MinifyVars.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/RemoveBraces.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/RemoveComments.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/Passes/RemoveWhitespace.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer\Passes;
Expand Down
2 changes: 1 addition & 1 deletion src/TokenStream.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
2 changes: 1 addition & 1 deletion src/cli.php
Expand Up @@ -2,7 +2,7 @@

/**
* @package s9e\SourceOptimizer
* @copyright Copyright (c) 2014-2015 The s9e Authors
* @copyright Copyright (c) 2014-2017 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\SourceOptimizer;
Expand Down
4 changes: 2 additions & 2 deletions tests/ContextHelperTest.php
Expand Up @@ -2,11 +2,11 @@

namespace s9e\SourceOptimizer\Tests;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use s9e\SourceOptimizer\ContextHelper;
use s9e\SourceOptimizer\TokenStream;

class ContextHelperTest extends PHPUnit_Framework_TestCase
class ContextHelperTest extends TestCase
{
/**
* @dataProvider getGetFunctionBlocksTests
Expand Down
4 changes: 2 additions & 2 deletions tests/HelperTest.php
Expand Up @@ -2,10 +2,10 @@

namespace s9e\SourceOptimizer\Tests;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use s9e\SourceOptimizer\Helper;
use s9e\SourceOptimizer\TokenStream;

class HelperTest extends PHPUnit_Framework_TestCase
class HelperTest extends TestCase
{
}
4 changes: 2 additions & 2 deletions tests/OptimizerTest.php
Expand Up @@ -2,13 +2,13 @@

namespace s9e\SourceOptimizer\Tests;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use s9e\SourceOptimizer\Optimizer;

/**
* @covers s9e\SourceOptimizer\Optimizer
*/
class OptimizerTest extends PHPUnit_Framework_TestCase
class OptimizerTest extends TestCase
{
/**
* @dataProvider getOptimizeTests
Expand Down
4 changes: 2 additions & 2 deletions tests/PassTest.php
Expand Up @@ -2,10 +2,10 @@

namespace s9e\SourceOptimizer\Tests;

use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use s9e\SourceOptimizer\Optimizer;

abstract class PassTest extends PHPUnit_Framework_TestCase
abstract class PassTest extends TestCase
{
/**
* @dataProvider getOptimizeTests
Expand Down
1 change: 0 additions & 1 deletion tests/Passes/ConcatenateConstantStringsTest.php
Expand Up @@ -2,7 +2,6 @@

namespace s9e\SourceOptimizer\Tests\Passes;

use PHPUnit_Framework_TestCase;
use s9e\SourceOptimizer\Tests\PassTest;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Passes/EnforceFQNTest.php
Expand Up @@ -2,7 +2,6 @@

namespace s9e\SourceOptimizer\Tests\Passes;

use PHPUnit_Framework_TestCase;
use s9e\SourceOptimizer\Tests\PassTest;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Passes/MinifyVarsTest.php
Expand Up @@ -2,7 +2,6 @@

namespace s9e\SourceOptimizer\Tests\Passes;

use PHPUnit_Framework_TestCase;
use s9e\SourceOptimizer\Tests\PassTest;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Passes/RemoveBracesTest.php
Expand Up @@ -2,7 +2,6 @@

namespace s9e\SourceOptimizer\Tests\Passes;

use PHPUnit_Framework_TestCase;
use s9e\SourceOptimizer\Tests\PassTest;

/**
Expand Down

0 comments on commit d515ddc

Please sign in to comment.