Skip to content

Commit ebbba7b

Browse files
Merge branch '9.5'
2 parents 6673225 + 1b58560 commit ebbba7b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

ChangeLog-9.5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 9.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [9.5.18] - 2022-03-08
6+
7+
### Fixed
8+
9+
* [#4877](https://github.com/sebastianbergmann/phpunit/issues/4877): No stack trace shown when an error occurs during bootstrap
10+
511
## [9.5.17] - 2022-03-05 - #StandWithUkraine
612

713
## [9.5.16] - 2022-02-23
@@ -136,6 +142,7 @@ All notable changes of the PHPUnit 9.5 release series are documented in this fil
136142

137143
* [#4535](https://github.com/sebastianbergmann/phpunit/issues/4535): `getMockFromWsdl()` does not handle methods that do not have parameters correctly
138144

145+
[9.5.18]: https://github.com/sebastianbergmann/phpunit/compare/9.5.17...9.5.18
139146
[9.5.17]: https://github.com/sebastianbergmann/phpunit/compare/9.5.16...9.5.17
140147
[9.5.16]: https://github.com/sebastianbergmann/phpunit/compare/dc738383c519243b0a967f63943a848d3fd861aa...9.5.16
141148
[9.5.15]: https://github.com/sebastianbergmann/phpunit/compare/9.5.14...dc738383c519243b0a967f63943a848d3fd861aa

src/TextUI/Exception/BootstrapException.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ public function __construct(Throwable $t)
2828

2929
parent::__construct(
3030
sprintf(
31-
'Error in bootstrap script: %s:%s%s',
31+
'Error in bootstrap script: %s:%s%s%s%s',
3232
$t::class,
3333
PHP_EOL,
34-
$t->getMessage()
34+
$t->getMessage(),
35+
PHP_EOL,
36+
$t->getTraceAsString()
3537
)
3638
);
3739
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--TEST--
22
https://github.com/sebastianbergmann/phpunit/issues/4620
3+
https://github.com/sebastianbergmann/phpunit/issues/4877
34
--FILE--
45
<?php declare(strict_types=1);
56

@@ -17,3 +18,4 @@ PHPUnit %s by Sebastian Bergmann and contributors.
1718

1819
Error in bootstrap script: PHPUnit\TestFixture\MyException:
1920
Big boom. Big bada boom.
21+
%a

0 commit comments

Comments
 (0)