File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,28 @@ public function testWhenNotMatchesInput(Input $input):void {
25
25
self ::assertFalse ($ trigger ->fire ());
26
26
}
27
27
28
+ public function testWhenWithKVP_missing ():void {
29
+ $ sut = new Trigger (new Input ([
30
+ "name " => "Cody " ,
31
+ "colour " => "orange " ,
32
+ ]));
33
+ $ sut ->when ([
34
+ "colour " => "white " ,
35
+ ]);
36
+ self ::assertFalse ($ sut ->fire ());
37
+ }
38
+
39
+ public function testWhenWithKVP ():void {
40
+ $ sut = new Trigger (new Input ([
41
+ "name " => "Cody " ,
42
+ "colour " => "orange " ,
43
+ ]));
44
+ $ sut ->when ([
45
+ "colour " => "orange " ,
46
+ ]);
47
+ self ::assertTrue ($ sut ->fire ());
48
+ }
49
+
28
50
/** @dataProvider dataInput */
29
51
public function testWithSingleKey (Input $ input ):void {
30
52
$ keys = Helper::getKeysFromInput ($ input , 1 );
You can’t perform that action at this time.
0 commit comments