@@ -235,4 +235,50 @@ describe('PHPUnit ProblemMatcher Text', () => {
235235 } ) ,
236236 ) ;
237237 } ) ;
238+
239+ fit ( 'fix PHPUnit 10 without details' , ( ) => {
240+ const contents = [
241+ `##teamcity[testSuiteStarted name='Tests\\Feature\\ChatControllerTest' locationHint='php_qn:///var/www/html/tests/Feature/ChatControllerTest.php::\\Tests\\Feature\\ChatControllerTest' flowId='22946']` ,
242+ `##teamcity[testIgnored name='test_permission' message='ChatControllerTest uses PlayerService' duration='0' flowId='22946']` ,
243+ `##teamcity[testIgnored name='test_grant_chat_token' message='ChatControllerTest uses PlayerService' duration='57' flowId='22946']` ,
244+ `##teamcity[testIgnored name='test_grant_chat_token_with_channels' message='ChatControllerTest uses PlayerService' duration='116' flowId='22946']` ,
245+ `##teamcity[testIgnored name='test_grant_chat_token_missing_token_without_ttl' message='ChatControllerTest uses PlayerService' duration='171' flowId='22946']` ,
246+ `##teamcity[testSuiteFinished name='Tests\\Feature\\ChatControllerTest' flowId='22946']` ,
247+ ] ;
248+
249+ problemMatcher . parse ( contents [ 0 ] ) ;
250+ expect ( problemMatcher . parse ( contents [ 1 ] ) ) . toEqual (
251+ expect . objectContaining ( {
252+ event : TeamcityEvent . testIgnored ,
253+ name : 'test_permission' ,
254+ locationHint : 'php_qn:///var/www/html/tests/Feature/ChatControllerTest.php::test_permission' ,
255+ flowId : 22946 ,
256+ id : '/var/www/html/tests/Feature/ChatControllerTest.php::test_permission' ,
257+ file : '/var/www/html/tests/Feature/ChatControllerTest.php' ,
258+ message : 'ChatControllerTest uses PlayerService' ,
259+ details : [ {
260+ file : '/var/www/html/tests/Feature/ChatControllerTest.php' ,
261+ line : 1 ,
262+ } ] ,
263+ duration : 0 ,
264+ } ) ,
265+ ) ;
266+
267+ expect ( problemMatcher . parse ( contents [ 2 ] ) ) . toEqual (
268+ expect . objectContaining ( {
269+ event : TeamcityEvent . testIgnored ,
270+ name : 'test_grant_chat_token' ,
271+ locationHint : 'php_qn:///var/www/html/tests/Feature/ChatControllerTest.php::test_grant_chat_token' ,
272+ flowId : 22946 ,
273+ id : '/var/www/html/tests/Feature/ChatControllerTest.php::test_grant_chat_token' ,
274+ file : '/var/www/html/tests/Feature/ChatControllerTest.php' ,
275+ message : 'ChatControllerTest uses PlayerService' ,
276+ details : [ {
277+ file : '/var/www/html/tests/Feature/ChatControllerTest.php' ,
278+ line : 1 ,
279+ } ] ,
280+ duration : 0 ,
281+ } ) ,
282+ ) ;
283+ } ) ;
238284} ) ;
0 commit comments