Skip to content

Commit bb9ba42

Browse files
As of PHPUnit 9, the global function wrappers are always available
1 parent 7cd0a6d commit bb9ba42

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/assertions.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ The assertion methods are declared static and can be invoked
2020
from any context using ``PHPUnit\Framework\Assert::assertTrue()``,
2121
for instance, or using ``$this->assertTrue()`` or ``self::assertTrue()``,
2222
for instance, in a class that extends ``PHPUnit\Framework\TestCase``.
23-
24-
In fact, you can even use global function wrappers such as ``assertTrue()`` in
25-
any context (including classes that extend ``PHPUnit\Framework\TestCase``)
26-
when you (manually) include the :file:`src/Framework/Assert/Functions.php`
27-
sourcecode file that comes with PHPUnit.
23+
You can even use global function wrappers such as ``assertTrue()``.
2824

2925
A common question, especially from developers new to PHPUnit, is whether
3026
using ``$this->assertTrue()`` or ``self::assertTrue()``,

0 commit comments

Comments
 (0)