codefroghub / roma
utility to work with roma numbers.
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/codefroghub/roma
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5.1
- satooshi/php-coveralls: ^1.0
This package is not auto-updated.
Last update: 2025-12-18 07:47:42 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
Testfor naming convention. - Test Class MUST extends
PHPUnit_Framework_TestCase - Method name starts with
testor 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.