Skip to content

Commit a002278

Browse files
jderusseNyholm
authored andcommitted
Fix compatibility with PHPUnit 8 (#21)
The method's signature changed in sebastianbergmann/phpunit@f5e5add
1 parent 5b23c14 commit a002278

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ before_install:
5252
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
5353
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
5454
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
55+
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
5556

5657
install:
5758
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355

src/BaseBundleTestCase.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ protected function createKernel()
7474

7575
/**
7676
* Shuts the kernel down if it was used in the test.
77+
*
78+
* @after
7779
*/
78-
private function ensureKernelShutdown()
80+
public function ensureKernelShutdown()
7981
{
8082
if (null !== $this->kernel) {
8183
$container = $this->kernel->getContainer();
@@ -86,14 +88,6 @@ private function ensureKernelShutdown()
8688
}
8789
}
8890

89-
/**
90-
* Clean up Kernel usage in this test.
91-
*/
92-
protected function tearDown()
93-
{
94-
$this->ensureKernelShutdown();
95-
}
96-
9791
/**
9892
* @param CompilerPassInterface $compilerPass
9993
*/

0 commit comments

Comments
 (0)