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 Mar 7, 2021
1 parent 10cc2b6 commit 366c0c9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
- Show test duration in timeline tooltips.

### Changed
- Require PHP 7.3+ and Symfony 4 components.
- Update to namespaced PHPUnit 7.0.
- Require PHP 7.3+ and Symfony 5 components.
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"ondram/ci-detector": "^4.0",
"php-webdriver/webdriver": "^1.10.0",
"phpdocumentor/reflection-docblock": "^5.2",
"phpunit/phpunit": "^7.5.20",
"phpunit/phpunit": "^8.5.12",
"roave/better-reflection": "^4.3",
"symfony/console": "^5.2",
"symfony/event-dispatcher": "^5.2",
Expand All @@ -55,7 +55,6 @@
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.80",
"phpstan/phpstan-phpunit": "^0.12.17",
"phpunit/php-code-coverage": "^6.1",
"symfony/var-dumper": "^5.2"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src-tests/Console/Command/RunCommandTest.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 366c0c9

Please sign in to comment.