Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
- hhvm

matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm

before_install:
Expand All @@ -25,7 +28,7 @@ before_install:
echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi
# Remove PHP CS Fixer for PHP 5.5 since it requires PHP 5.6
- if [[ $TRAVIS_PHP_VERSION == "5.5" || $TRAVIS_PHP_VERSION == "hhvm" ]]; then composer remove friendsofphp/php-cs-fixer --dev --no-update; fi
- if [[ $TRAVIS_PHP_VERSION == "5.5" || $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "hhvm" ]]; then composer remove friendsofphp/php-cs-fixer --dev --no-update; fi

before_script:
- composer self-update || true
Expand All @@ -37,7 +40,7 @@ script:
# PHP CodeSniffer
- vendor/bin/phpcs -p --report=summary
# PHP CS Fixer (if >=5.6)
- if [[ $TRAVIS_PHP_VERSION != "5.5" && $TRAVIS_PHP_VERSION != "hhvm" ]]; then vendor/bin/php-cs-fixer fix --dry-run; fi
- if [[ $TRAVIS_PHP_VERSION != "5.5" && $TRAVIS_PHP_VERSION != "nightly" && $TRAVIS_PHP_VERSION != "hhvm" ]]; then vendor/bin/php-cs-fixer fix --dry-run; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
18 changes: 7 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"require-dev": {
"bolt/codingstyle": "^2.0@dev",
"bolt/filesystem": "^2.0",
"escapestudios/symfony2-coding-standard": "^3.0@dev",
"friendsofphp/php-cs-fixer": "^2.4",
"escapestudios/symfony2-coding-standard": "^3.1",
"friendsofphp/php-cs-fixer": "^2.10",
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^4.8",
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.0",
"predis/predis": "^1.1",
"silex/silex": "^1.3 || ^2.0",
"squizlabs/php_codesniffer": "^3.0",
"symfony/cache": "^3.3 || ^4.0",
"symfony/filesystem": "^2.8 || ^3.0 || ^4.0",
"symfony/phpunit-bridge": "^3.3 || ^4.0"
Expand All @@ -44,15 +45,10 @@
}
},
"scripts": {
"test": "phpunit",
"test": "vendor/bin/phpunit",
"lint": [
"phpcbf",
"php-cs-fixer fix"
"vendor/bin/phpcbf",
"vendor/bin/php-cs-fixer fix"
]
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion tests/Handler/Factory/MemcacheFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Bolt\Session\Handler\Factory\MemcacheFactory;
use Bolt\Session\OptionsBag;
use Bolt\Session\Tests\Handler\Factory\Mock\MockMemcache;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @requires extension memcache
Expand Down
2 changes: 1 addition & 1 deletion tests/Handler/Factory/Mock/MockMemcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setOption($option, $value)
$this->options[$value];
}

public function setOptions(/* @noinspection PhpSignatureMismatchDuringInheritanceInspection */ $options)
public function setOptions($options)
{
$this->options = $options;
}
Expand Down
9 changes: 9 additions & 0 deletions tests/IniBagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public function testHas()
$this->assertFalse($ini->has('kajhsdfakjsdfh'));
}

/**
* @runInSeparateProcess
*/
public function testSet()
{
$ini = new IniBag('session');
Expand All @@ -146,6 +149,9 @@ public function testSet()
}
}

/**
* @runInSeparateProcess
*/
public function testAdd()
{
$ini = new IniBag('session');
Expand All @@ -160,6 +166,9 @@ public function testAdd()
}
}

/**
* @runInSeparateProcess
*/
public function testReplace()
{
$ini = new IniBag('session');
Expand Down