Clarify trait usage (#15)

Properly state that this is a trait, the class name does not suggest so ATM. Also suggest renaming it on import to avoid confusion.
This commit is contained in:
Mathias Brodala 2024-03-26 17:54:40 +09:00 committed by GitHub
parent 747a0fca3a
commit a7fe26f307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,11 +51,18 @@ Within testing framework
],
];
#. Add API
#. Import the :php:`Codappix\Typo3PhpDatasets\TestingFramework` trait
.. code-block:: php
use Codappix\Typo3PhpDatasets\TestingFramework;
use Codappix\Typo3PhpDatasets\TestingFramework as PhpDatasets;
final class MyTest extends FunctionalTestCase
{
use PhpDatasets;
// ...
}
#. Use API