File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to ` CMSMS ` will be documented in this file
44
5+ ## [ 0.0.5] - 2016-09-29
6+ #### Fixed
7+ - Allow an empty ` tariff ` to be set.
8+
59## [ 0.0.4] - 2016-09-13
610#### Fixed
7- - Moved the ` tariff ` field under the correct XML child
11+ - Moved the ` tariff ` field under the correct XML child.
812
913## [ 0.0.3] - 2016-09-12
1014#### Added
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function reference($reference)
8282 */
8383 public function tariff ($ tariff )
8484 {
85- if (empty ( $ tariff ) || ! is_int ($ tariff )) {
85+ if (! is_int ($ tariff )) {
8686 throw InvalidMessage::invalidTariff ($ tariff );
8787 }
8888
Original file line number Diff line number Diff line change @@ -106,11 +106,11 @@ public function it_can_set_tariff()
106106 }
107107
108108 /** @test */
109- public function it_cannot_set_an_empty_tariff ()
109+ public function it_can_set_an_empty_tariff ()
110110 {
111- $ this -> setExpectedException (InvalidMessage::class );
111+ $ message = ( new CmsmsMessage )-> tariff ( 0 );
112112
113- ( new CmsmsMessage )-> tariff ( 0 );
113+ $ this -> assertEquals ( 0 , $ message -> getTariff () );
114114 }
115115
116116 /** @test */
You can’t perform that action at this time.
0 commit comments