Skip to content

Commit

Permalink
Require PHPUnit ^8.5.12 (part of #260)
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Dec 4, 2020
1 parent 7dc596d commit b324dc2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,7 @@

### Changed
- Require PHP 7.2+ and Symfony 4 components.
- Update to namespaced PHPUnit 7.0.
- Update to namespaced PHPUnit. Set minimal required version to PHPUnit 8.5.12.
- Use php-webdriver 1.8+ with W3C WebDriver support.
- Methods now uses strict type-hints and return type-hints. Inherited classes and interfaces (eg. `CustomCapabilitiesResolverInterface`, `OptimizeOrderInterface` etc.) may require to be changed in accordance with this.
- Simplified and improved test output.
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -35,7 +35,7 @@
"ondram/ci-detector": "^3.1",
"php-webdriver/webdriver": "^1.8.1",
"phpdocumentor/reflection-docblock": "^5.2",
"phpunit/phpunit": "^7.5.20",
"phpunit/phpunit": "^8.5.12",
"roave/better-reflection": "^4.3",
"symfony/console": "^4.0",
"symfony/event-dispatcher": "^4.0",
Expand All @@ -56,7 +56,6 @@
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.11",
"phpstan/phpstan-phpunit": "^0.12.6",
"phpunit/php-code-coverage": "^6.0",
"symfony/var-dumper": "^4.0"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src-tests/Console/Command/RunCommandTest.php
Expand Up @@ -408,7 +408,7 @@ protected function getSeleniumAdapterMock()

$seleniumAdapterMock->expects($this->any())
->method('getLastError')
->willReturn(null);
->willReturn('');

$seleniumAdapterMock->expects($this->any())
->method('isSeleniumServer')
Expand Down
2 changes: 1 addition & 1 deletion src-tests/Listener/SnapshotListenerTest.php
Expand Up @@ -111,7 +111,7 @@ public function provideTestWithDataSet(): array
$dummyException,
'FooBarTest',
'testFooBar',
0,
'0',
['foo', 'bar'],
'FooBarTest-testFooBar-with-data-set-0',
],
Expand Down
2 changes: 1 addition & 1 deletion src-tests/MockAbstractTestCaseWithNameTrait.php
Expand Up @@ -3,8 +3,8 @@
namespace Lmc\Steward;

use Lmc\Steward\Test\AbstractTestCase;
use PHPUnit\Framework\MockObject\Matcher\AnyInvokedCount;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\MockObject\Rule\AnyInvokedCount;

trait MockAbstractTestCaseWithNameTrait
{
Expand Down
2 changes: 1 addition & 1 deletion src-tests/Selenium/CapabilitiesResolverTest.php
Expand Up @@ -78,7 +78,7 @@ public function testShouldResolveExtraDesiredCapabilitiesOnCiServer(): void
]
);

$ciMock = $this->createConfiguredMock(Jenkins::class, ['getBuildNumber' => 1337, 'getCiName' => 'Jenkins']);
$ciMock = $this->createConfiguredMock(Jenkins::class, ['getBuildNumber' => '1337', 'getCiName' => 'Jenkins']);
$ciDetectorMock = $this->createConfiguredMock(
CiDetector::class,
['isCiDetected' => true, 'detect' => $ciMock]
Expand Down

0 comments on commit b324dc2

Please sign in to comment.