In order to create a unit test, you need to create a directory Tests/Unit/
in your extension directory and add some PHP files ending with *Test.php
containing a class with functions that have the @test annotation.
If you need to store data for fixtures, create a sub directory
Tests/Fixtures/ or Tests/Unit/Fixtures/.
Consult the PHPUnit documentation
for information on writing tests, available functions etc.