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 {
2525 self ::assertFalse ($ trigger ->fire ());
2626 }
2727
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+
2850 /** @dataProvider dataInput */
2951 public function testWithSingleKey (Input $ input ):void {
3052 $ keys = Helper::getKeysFromInput ($ input , 1 );
You can’t perform that action at this time.
0 commit comments