Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jubianchi committed Jul 19, 2017
1 parent 12c1dfc commit d3ef981
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ language: php
sudo: false

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly

cache:
directories:
Expand All @@ -20,9 +18,8 @@ env:
- COMPOSER_PREFER="--prefer-lowest"

matrix:
exclude:
- php: 7.1
env: COMPOSER_PREFER="--prefer-lowest"
allow_failures:
- php: nightly

script:
- composer update $COMPOSER_PREFER
Expand Down
8 changes: 4 additions & 4 deletions tests/units/Test/Units/CommandTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public function testCreateCommandTester()
$this
->given(
$command = new \mock\Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand($commandName = uniqid()),
$kernel = new \mock\Symfony\Component\HttpKernel\KernelInterface(),
$container = new \mock\Symfony\Component\DependencyInjection\ContainerInterface(),
$application = new \mock\Symfony\Bundle\FrameworkBundle\Console\Application($kernel),
$object = new \mock\atoum\AtoumBundle\Test\Units\CommandTestCase(),
$command->getMockController()->run = $status = uniqid(),
$container = new \mock\Symfony\Component\DependencyInjection\ContainerInterface(),
$kernel = new \mock\Symfony\Component\HttpKernel\KernelInterface(),
$kernel->getMockController()->getBundles = array(),
$kernel->getMockController()->getContainer = $container,
$application = new \mock\Symfony\Bundle\FrameworkBundle\Console\Application($kernel),
$object = new \mock\atoum\AtoumBundle\Test\Units\CommandTestCase(),
$object->getMockController()->getKernel = $kernel
)
->if($commandTester = $object->createCommandTester($command))
Expand Down

0 comments on commit d3ef981

Please sign in to comment.