mirror of
https://github.com/Codappix/typo3-php-datasets.git
synced 2024-12-05 02:56:11 +01:00
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:
parent
747a0fca3a
commit
a7fe26f307
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
|
.. code-block:: php
|
||||||
|
|
||||||
use Codappix\Typo3PhpDatasets\TestingFramework;
|
use Codappix\Typo3PhpDatasets\TestingFramework as PhpDatasets;
|
||||||
|
|
||||||
|
final class MyTest extends FunctionalTestCase
|
||||||
|
{
|
||||||
|
use PhpDatasets;
|
||||||
|
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
|
||||||
#. Use API
|
#. Use API
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue