Re: [RFC] keeping unit tests green
| From: | Sebastian Bergmann | Date: | Tue, 15 Apr 2014 09:25:03 +0000 |
| Subject: | Re: [RFC] keeping unit tests green | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73696@lists.php.net to get a copy of this message | ||
Am 15.04.2014 10:46, schrieb Florian Anderiasch:
> If
>
> https://github.com/php/php-src/blob/master/ext/standard/tests/strings/bin2hex.phpt
> (and most of the other function tests) is not a unit test I'm not sure
> how you would set the requirements.
A PHPT test is a PHP script that is executed using the PHP interpreter.
This constitutes an integration test. A unit test would be a test that
is written in C that exercises a single C unit of code in isolation
from the rest of the interpreter.