Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Symfony4 #79

Merged
merged 3 commits into from Feb 10, 2018
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -3,12 +3,19 @@ language: php
matrix:
include:
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
env: COMPOSER_OPTS="--prefer-lowest"
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
- php: hhvm
env: COMPOSER_OPTS="--prefer-lowest"
allow_failures:
- php: nightly

before_install:
- sudo apt-get update -qq
Expand All @@ -19,4 +26,4 @@ install:
- composer update $COMPOSER_OPTS

script:
- phpunit tests
- vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -10,10 +10,10 @@
],
"require": {
"php": ">=5.3.2",
"symfony/console": "~2.3 || ~3.0"
"symfony/console": "~2.3 || ~3.0 || ~4.0"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
"phpunit/phpunit": "~4.8.36 || ~5.7 || ~6.4"
},
"autoload": {
"psr-4": {
Expand Down
Expand Up @@ -2,14 +2,15 @@

namespace Stecman\Component\Symfony\Console\BashCompletion\Tests\Common;

use PHPUnit\Framework\TestCase;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionHandler;
use Symfony\Component\Console\Application;

/**
* Base test case for running CompletionHandlers
*/
abstract class CompletionHandlerTestCase extends \PHPUnit_Framework_TestCase
abstract class CompletionHandlerTestCase extends TestCase
{
/**
* @var Application
Expand Down
Expand Up @@ -2,10 +2,11 @@

namespace Stecman\Component\Symfony\Console\BashCompletion\Tests;

use PHPUnit\Framework\TestCase;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
use Stecman\Component\Symfony\Console\BashCompletion\EnvironmentCompletionContext;

class CompletionContextTest extends \PHPUnit_Framework_TestCase
class CompletionContextTest extends TestCase
{

public function testWordBreakSplit()
Expand Down
Expand Up @@ -2,9 +2,10 @@

namespace Stecman\Component\Symfony\Console\BashCompletion\Tests;

use PHPUnit\Framework\TestCase;
use Stecman\Component\Symfony\Console\BashCompletion\HookFactory;

class HookFactoryTest extends \PHPUnit_Framework_TestCase
class HookFactoryTest extends TestCase
{
/**
* @var HookFactory
Expand Down Expand Up @@ -91,9 +92,7 @@ protected function assertSyntaxIsValid($code, $syntaxCheckCommand, $context)

$status = proc_close($process);

if ($status !== 0) {
$this->fail("Syntax check for $context failed:\n$output");
}
$this->assertSame(0, $status, "Syntax check for $context failed:\n$output");
} else {
throw new \RuntimeException("Failed to start process with command '$syntaxCheckCommand'");
}
Expand Down