spendmail / movavi
Movavi 测试任务
dev-master
2018-08-28 15:05 UTC
Requires
- php: >=7.0
- ext-json: *
- ext-mbstring: *
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: 6.*
This package is not auto-updated.
Last update: 2024-09-18 21:23:57 UTC
README
Movavi 测试库
任务
有2个服务返回汇率
- https://www.cbr.ru/development/SXML/
- https://cash.rbc.ru/cash/json/converter_currency_rate/?currency_from=USD¤cy_to=RUR&source=cbrf&sum=1&date=
需要编写一个库,该库将计算在指定日期下这两个服务的欧元和美元的平均汇率。
如果其中一个服务不可用,则应生成异常。
代码应尽可能被测试覆盖。
安装
composer require spendmail/movavi dev-master