sofa1at / mobiscrollinterpreter
converts sofa 1 businesshours and timetables to mobiscroll invalid/valid objects
Installs: 299
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:SCSS
Requires
- netresearch/jsonmapper: ^3
- sofa1at/php.b.core: ^1
Requires (Dev)
- phpunit/phpunit: ^9
README
install the mobiscroll via composer
{ "require": { "sofa1at/php.b.int.mobiscroll": "^1" }, "config": { "github-oauth": { "github.com": "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" } }, "repositories": [ { "type": "vcs", "url": "git@github.com:sofa1at/php.b.int.mobiscroll.git" } ] }
php-mobiscrollinterpreter
This repository holds all interfaces/classes/traits related to PSR-3.
composer require sofa1at/mobiscrollinterpreter
$converter = new Sofa1MobiscrollConverter(); // add businesshours $converter->AddBusinessHours($mockDataBusinessHours); // add timesettings $converter->AddTimeSetting($mockTimeSetting); // receive json $converter->ToString();
#phpunit tests Test if the output strings ar equal to the mock data strings.
Folder tests
TestClass InterpreterTest (interpretertest.php)
// timeSettings with Holidays testTimeSettingsAndBusinessHolidays(); // timeSettings only testTimeSettings(); // businessHours only testBusinessHours(); // businessHours with Holidays testBusinessHoursAndBusinessHolidays();