codefroghub / roma
utility to work with roma numbers.
0.1.1
2016-08-24 09:39 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5.1
- satooshi/php-coveralls: ^1.0
This package is not auto-updated.
Last update: 2025-01-16 03:45:35 UTC
README
utility to work with roma numbers.
FROM PHPUNTI STARTER
Prerequisite
- PHP (https://php.net/downloads.php)
- Composer (https://getcomposer.org/)
- PHPUnit (https://phpunit.de/)
For command line use, please setup properly for global environment.
Installation
Install phpunit for project
composer install
Folder Structures
Project/
|-- src/ (php source code)
|-- tests/ (Testing files)
|-- composer.json (Composer configuration file)
|-- phpunit.xml (PHPUnit configuration file)
Run PHPUnit
Run all testing files in tests/ folder with color highlight
phpunit tests/ --colors
Basic PHP Test File
- Class with
Test
for naming convention. - Test Class MUST extends
PHPUnit_Framework_TestCase
- Method name starts with
test
or with annotation/** @test */
<?php class ExampleTest extends PHPUnit_Framework_TestCase { /** @test */ public function test_feature() { // arrange // act // assert } }
PHPUnit Assertions (https://phpunit.de/manual/current/en/appendixes.assertions.html)
Visit PHPUnit Manual for more information.