File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function getMarking($subject): Marking
56
56
57
57
$ marking = $ subject ->{$ method }();
58
58
59
- if (! $ marking ) {
59
+ if (null === $ marking ) {
60
60
return new Marking ();
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ public function testGetSetMarkingWithSingleState()
53
53
$ this ->assertEquals ($ marking , $ marking2 );
54
54
}
55
55
56
+ public function testGetSetMarkingWithSingleStateAndAlmostEmptyPlaceName ()
57
+ {
58
+ $ subject = new Subject (0 );
59
+
60
+ $ markingStore = new MethodMarkingStore (true );
61
+
62
+ $ marking = $ markingStore ->getMarking ($ subject );
63
+
64
+ $ this ->assertInstanceOf (Marking::class, $ marking );
65
+ $ this ->assertCount (1 , $ marking ->getPlaces ());
66
+ }
67
+
56
68
public function testGetMarkingWithValueObject ()
57
69
{
58
70
$ subject = new Subject ($ this ->createValueObject ('first_place ' ));
You can’t perform that action at this time.
0 commit comments