Skip to content

Commit 332c08d

Browse files
1 parent c917240 commit 332c08d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/incomplete-and-skipped-tests.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ In addition to the above methods it is also possible to use the
226226

227227
The following operators are supported for PHP, PHPUnit, and extension version constraints: ``<``, ``<=``, ``>``, ``>=``, ``=``, ``==``, ``!=``, ``<>``.
228228

229+
Versions are compared using PHP's `version_compare <https://www.php.net/version_compare>`_ function. Among other things, this means that the ``=`` and ``==`` operator can only be used with complete ``X.Y.Z`` version numbers and that just ``X.Y`` will not work.
230+
229231
.. code-block:: php
230232
:caption: Skipping test cases using @requires
231233
:name: incomplete-and-skipped-tests.skipping-tests.examples.DatabaseClassSkippingTest.php

0 commit comments

Comments
 (0)