Skip to content

Commit 6a0056b

Browse files
Merge branch '8.5' into 9.5
2 parents 32dbdf1 + 757f003 commit 6a0056b

File tree

6 files changed

+7
-58
lines changed

6 files changed

+7
-58
lines changed

ChangeLog-8.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
1313
* [#4663](https://github.com/sebastianbergmann/phpunit/issues/4663): `TestCase::expectError()` works on PHP 7.3, but not on PHP >= 7.4
1414
* [#4678](https://github.com/sebastianbergmann/phpunit/pull/4678): Stubbed methods with `iterable` return types should return empty array by default
1515
* [#4692](https://github.com/sebastianbergmann/phpunit/issues/4692): Annotations in single-line doc-comments are not handled correctly
16+
* [#4694](https://github.com/sebastianbergmann/phpunit/issues/4694): `TestCase::getMockFromWsdl()` does not work with PHP 8.1-dev
1617

1718
## [8.5.15] - 2021-03-17
1819

ChangeLog-9.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ All notable changes of the PHPUnit 9.5 release series are documented in this fil
1313
* [#4632](https://github.com/sebastianbergmann/phpunit/issues/4632): TestDox result printer does not handle repeated test execution correctly
1414
* [#4678](https://github.com/sebastianbergmann/phpunit/pull/4678): Stubbed methods with `iterable` return types should return empty array by default
1515
* [#4692](https://github.com/sebastianbergmann/phpunit/issues/4692): Annotations in single-line doc-comments are not handled correctly
16+
* [#4694](https://github.com/sebastianbergmann/phpunit/issues/4694): `TestCase::getMockFromWsdl()` does not work with PHP 8.1-dev
1617

1718
## [9.5.4] - 2021-03-23
1819

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"sebastian/global-state": "^5.0.1",
4848
"sebastian/object-enumerator": "^4.0.3",
4949
"sebastian/resource-operations": "^3.0.3",
50-
"sebastian/type": "^2.3",
50+
"sebastian/type": "^2.3.2",
5151
"sebastian/version": "^3.0.2"
5252
},
5353
"require-dev": {

tests/end-to-end/regression/GitHub/1337.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.
1414

15-
.. 2 / 2 (100%)
15+
. 1 / 1 (100%)
1616

1717
Time: %s, Memory: %s
1818

19-
OK (2 tests, 2 assertions)
19+
OK (1 test, 1 assertion)

tests/end-to-end/regression/GitHub/1337/Issue1337Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function dataProvider()
2323
{
2424
return [
2525
'c:\\' => [true],
26-
0.9 => [true],
26+
// The following is commented out because it no longer works in PHP >= 8.1
27+
//0.9 => [true],
2728
];
2829
}
2930
}

tests/unit/Framework/TestBuilderTest.php

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*/
1010
namespace PHPUnit\Framework;
1111

12-
use function assert;
13-
use PHPUnit\Framework\MockObject\MockObject;
1412
use PHPUnit\TestFixture\EmptyDataProviderTest;
1513
use PHPUnit\TestFixture\ModifiedConstructorTestCase;
1614
use PHPUnit\TestFixture\TestWithAnnotations;
@@ -21,58 +19,6 @@
2119
*/
2220
final class TestBuilderTest extends TestCase
2321
{
24-
public function testCreateTestForConstructorlessTestClass(): void
25-
{
26-
$reflector = $this->getMockBuilder(ReflectionClass::class)
27-
->setConstructorArgs([$this])
28-
->getMock();
29-
30-
assert($reflector instanceof MockObject);
31-
assert($reflector instanceof ReflectionClass);
32-
33-
$reflector->expects($this->once())
34-
->method('getConstructor')
35-
->willReturn(null);
36-
37-
$reflector->expects($this->once())
38-
->method('isInstantiable')
39-
->willReturn(true);
40-
41-
$reflector->expects($this->once())
42-
->method('getName')
43-
->willReturn(__CLASS__);
44-
45-
$this->expectException(Exception::class);
46-
$this->expectExceptionMessage('No valid test provided.');
47-
48-
(new TestBuilder)->build($reflector, 'TestForConstructorlessTestClass');
49-
}
50-
51-
public function testCreateTestForNotInstantiableTestClass(): void
52-
{
53-
$reflector = $this->getMockBuilder(ReflectionClass::class)
54-
->setConstructorArgs([$this])
55-
->getMock();
56-
57-
assert($reflector instanceof MockObject);
58-
assert($reflector instanceof ReflectionClass);
59-
60-
$reflector->expects($this->once())
61-
->method('isInstantiable')
62-
->willReturn(false);
63-
64-
$reflector->expects($this->once())
65-
->method('getName')
66-
->willReturn('foo');
67-
68-
$test = (new TestBuilder)->build($reflector, 'TestForNonInstantiableTestClass');
69-
70-
$this->assertInstanceOf(ErrorTestCase::class, $test);
71-
72-
/* @var ErrorTestCase $test */
73-
$this->assertSame('Cannot instantiate class "foo".', $test->getMessage());
74-
}
75-
7622
public function testCreateTestForTestClassWithModifiedConstructor(): void
7723
{
7824
$test = (new TestBuilder)->build(new ReflectionClass(ModifiedConstructorTestCase::class), 'testCase');

0 commit comments

Comments
 (0)