This repository uses PHPUnit for unit testing.
The unit test files are located in the tests directory, configured in phpunit.xml.
- Install Composer.
- Run
composer installto install the dependencies.
- Create a new test file in the
testsdirectory. - The test file name must be the same as the class name, with the suffix
Test. - The test should follow namespace structure.
- The namespace of test is
ArrayAccess\WP\Tests\Libraries\Core. - The code also must be passed by php code sniffer. (Refer Coding Standard)
Run the tests: composer phpunit to run all tests.