-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPUnit internal error #5549
Comments
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
I assume that you do not have your PHP interpreter configured to execute |
Hi,
you are correct. I changed to phpunit10 again today, however, I was not
able to create the error anymore - when I opened the ticket all runs
failed. Please close the ticket.
When I reencounter the error, I will collect more information and also
do the configuration as described below.
Please apologize my wasting your time and many thanks for phpunit!
Best regards,
Valeri
Am 12.11.23 um 07:05 schrieb Sebastian Bergmann:
…
I assume that you do not have your PHP interpreter configured to
execute |assert()| statements. Can you post the output you get when
you configure |zend.assertions=1| and |assert.exception=1|? Thanks!
—
Reply to this email directly, view it on GitHub
<#5549 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADIGEDNPQFT22TUF523RUGTYEBRL7AVCNFSM6AAAAAA6RF2DDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGAYTIOJSGY>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Bei Fragen oder Unklarheiten stehen wir Ihnen gerne zur Verfügung.
MFG, Valeri Geiser
*CLS**GmbH
Hauptstraße 2
**66459 Kirkel-Limbach*
*
Phone: *(+49) 684197593-19
*Fax: *(+49) 6841 97593-49
***@***.***
*Web:*https://www._cls-gmbh_.de <https://www.cls-gmbh.de/>
CLS Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: 66459 Kirkel | Geschäftsführer: Klaus Miosga |
Registergericht: Homburg HRB 106139
--------------OuX0WmwdyB0VakM7YoHcCMG3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi,<br>
<br>
you are correct. I changed to phpunit10 again today, however, I was
not able to create the error anymore - when I opened the ticket all
runs failed. Please close the ticket.<br>
When I reencounter the error, I will collect more information and
also do the configuration as described below.<br>
Please apologize my wasting your time and many thanks for phpunit!<br>
<br>
Best regards,<br>
Valeri<br>
<br>
<div class="moz-cite-prefix">Am 12.11.23 um 07:05 schrieb Sebastian
Bergmann:<br>
</div>
<blockquote type="cite"
***@***.***">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p dir="auto">I assume that you do not have your PHP interpreter
configured to execute <code class="notranslate">assert()</code>
statements. Can you post the output you get when you configure <code
class="notranslate">zend.assertions=1</code> and <code
class="notranslate">assert.exception=1</code>? Thanks!</p>
<p
style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
Reply to this email directly, <a
href="#5549 (comment)"
moz-do-not-send="true">view it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/ADIGEDNPQFT22TUF523RUGTYEBRL7AVCNFSM6AAAAAA6RF2DDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGAYTIOJSGY"
moz-do-not-send="true">unsubscribe</a>.<br>
You are receiving this because you authored the thread.<img
src="https://github.com/notifications/beacon/ADIGEDLWWGQRYKM66YHUZ2DYEBRL7A5CNFSM6AAAAAA6RF2DDGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTLWTOA4.gif"
alt="" moz-do-not-send="true" width="1" height="1"><span
style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message
ID: <span><sebastianbergmann/phpunit/issues/5549/1807014926</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#5549 (comment)",
"url": "#5549 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta name="generator" content="LibreOffice 6.4.4.2 (Linux)">
<meta name="author" content="Valeri Geiser">
<meta name="created" content="2014-10-01T00:00:00">
<meta name="changed" content="2020-08-01T07:48:24.654520117">
<style type="text/css">
@page { size: 21cm 29.7cm; margin: 2cm }
p { margin-bottom: 0.25cm; background: transparent; color: #000000; line-height: 120%; background: transparent }
a:link { color: #80; so-language: en-US; text-decoration: underline }
a:visited { color: #800000; so-language: zxx; text-decoration: underline }
</style>
<p>
<font color="#1f497d"><font face="Arial, sans-serif">Bei Fragen
oder
Unklarheiten stehen wir Ihnen gerne zur Verfügung.</font></font></p>
<p><font color="#1f497d"><font face="Arial, sans-serif">MFG,
Valeri
Geiser</font></font></p>
<p><font color="#1f497d"><font face="Arial, sans-serif"><b>CLS</b></font></font><font
color="#1f497d">
</font><font color="#1f497d"><font face="Arial, sans-serif"><b>GmbH
<br>
Hauptstraße 2<br>
</b></font></font><font color="#1f497d"><font
face="Arial, sans-serif"><span lang="en-US"><b>66459
Kirkel-Limbach</b></span></font></font></p>
<p><font color="#1f497d"><font face="Arial, sans-serif"><span
lang="en-US"><b><br>
Phone:
</b></span></font></font><font color="#1f497d"><font
face="Arial, sans-serif"><span lang="en-US">(+49)
6841</span></font></font><font color="#1f497d"> </font><font
color="#1f497d"><font face="Arial, sans-serif"><span
lang="en-US">97593-19<br>
</span></font></font><font color="#1f497d"><font
face="Arial, sans-serif"><span lang="en-US"><b>Fax:
</b></span></font></font><font color="#1f497d"><font
face="Arial, sans-serif"><span lang="en-US">(+49)
6841 97593-49</span></font></font></p>
<p><font color="#1f497d"><font face="Arial, sans-serif"><span
lang="en-US"><b>Email:</b></span></font></font><font
color="#1f497d">
</font><font color="#1f497d"><font face="Arial, sans-serif"><span
lang="en-US"><a ***@***.***"
***@***.***</a><br>
</span></font></font><font color="#1f497d"><font
face="Arial, sans-serif"><b>Web:</b></font></font><font
color="#1f497d">
</font><a href="https://www.cls-gmbh.de/"><font color="#1f497d"><font
face="Arial, sans-serif">https://www.</font></font><font
color="#1f497d"><font face="Arial, sans-serif"><span
lang="en-US"><u>cls-gmbh</u></span></font></font><font
color="#1f497d"><font face="Arial, sans-serif">.de</font></font></a></p>
<p><font color="#1f497d"><font face="Arial, sans-serif"><font
style="font-size: 10pt" size="2">CLS
Gesellschaft mit beschränkter Haftung<br>
Sitz der Gesellschaft:
66459 Kirkel | Geschäftsführer: Klaus Miosga |
Registergericht:
Homburg HRB 106139 </font></font></font>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br>
</p>
</div>
</body>
</html>
--------------OuX0WmwdyB0VakM7YoHcCMG3--
|
Hi Sebastian, I now figured out a minimal example. We had an assertion in one setUp method - if this fails it produces the error described above. I agree that setUp might not be the best place for an assertion, so please let me know if this is not allowed anymore (documentation does only disallow in setUpBeforeClass). Anyhow, here is the minimal example:
|
Summary
When running our test suite, after ~3000 tests the program stops with an internal error.
Current behavior
When running our test suite, suddenly below error occurs. There were only some code changes done in the code being tested; it was running on 10.4.1 this morning. Update to 10.4.2 does not help. Here is the complete error:
An error occurred inside PHPUnit.
Message: PHPUnit\Event\Telemetry\HRTime::duration(): Argument #1 ($start) must be of type PHPUnit\Event\Telemetry\HRTime, null given, called in phar:///usr/local/bin/phpunit/phpunit/Logging/JUnit/JunitXmlLogger.php on line 191
Location: phar:///usr/local/bin/phpunit/phpunit/TextUI/TestRunner.php:48
#0 phar:///usr/local/bin/phpunit/phpunit/TextUI/Application.php(144): PHPUnit\TextUI\TestRunner->run()
#1 /usr/local/bin/phpunit(2976): PHPUnit\TextUI\Application->run()
#2 {main}
Caused by: phar:///usr/local/bin/phpunit/phpunit/Event/Value/Telemetry/HRTime.php:54
#0 phar:///usr/local/bin/phpunit/phpunit/Logging/JUnit/JunitXmlLogger.php(191): PHPUnit\Event\Telemetry\HRTime->duration()
#1 phar:///usr/local/bin/phpunit/phpunit/Logging/JUnit/JunitXmlLogger.php(148): PHPUnit\Logging\JUnit\JunitXmlLogger->handleFinish()
#2 phar:///usr/local/bin/phpunit/phpunit/Logging/JUnit/Subscriber/TestFinishedSubscriber.php(29): PHPUnit\Logging\JUnit\JunitXmlLogger->testFinished()
#3 phar:///usr/local/bin/phpunit/phpunit/Event/Dispatcher/DirectDispatcher.php(78): PHPUnit\Logging\JUnit\TestFinishedSubscriber->notify()
#4 phar:///usr/local/bin/phpunit/phpunit/Event/Dispatcher/DeferringDispatcher.php(41): PHPUnit\Event\DirectDispatcher->dispatch()
#5 phar:///usr/local/bin/phpunit/phpunit/Event/Emitter/DispatchingEmitter.php(548): PHPUnit\Event\DeferringDispatcher->dispatch()
#6 phar:///usr/local/bin/phpunit/phpunit/Framework/TestRunner.php(152): PHPUnit\Event\DispatchingEmitter->testFinished()
#7 phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php(436): PHPUnit\Framework\TestRunner->run()
#8 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(266): PHPUnit\Framework\TestCase->run()
#9 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(266): PHPUnit\Framework\TestSuite->run()
#10 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(266): PHPUnit\Framework\TestSuite->run()
#11 phar:///usr/local/bin/phpunit/phpunit/TextUI/TestRunner.php(44): PHPUnit\Framework\TestSuite->run()
#12 phar:///usr/local/bin/phpunit/phpunit/TextUI/Application.php(144): PHPUnit\TextUI\TestRunner->run()
#13 /usr/local/bin/phpunit(2976): PHPUnit\TextUI\Application->run()
#14 {main}
How to reproduce
I do not have a way to reproduce this with a small example. However, since it is a type error, I would hope it might be possible to find it while analysing the code. I looked at the code and I see that there is an assert before, but it is most likely disabled.
Expected behavior
PHPUnit runs without internal error
The text was updated successfully, but these errors were encountered: