mirror of
https://github.com/Codappix/typo3-php-datasets.git
synced 2024-11-14 07:56:11 +01:00
[TASK] Clarify trait usage
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:
parent
747a0fca3a
commit
af6952d334
1 changed files with 9 additions and 2 deletions
11
README.rst
11
README.rst
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue