File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Behavioral/Specification/Tests Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ public function testCanAnd()
27
27
$ spec1 = new PriceSpecification (50 , 100 );
28
28
$ spec2 = new PriceSpecification (80 , 200 );
29
29
30
- $ orSpec = new AndSpecification ($ spec1 , $ spec2 );
30
+ $ andSpec = new AndSpecification ($ spec1 , $ spec2 );
31
31
32
- $ this ->assertFalse ($ orSpec ->isSatisfiedBy (new Item (150 )));
33
- $ this ->assertFalse ($ orSpec ->isSatisfiedBy (new Item (1 )));
34
- $ this ->assertFalse ($ orSpec ->isSatisfiedBy (new Item (51 )));
35
- $ this ->assertTrue ($ orSpec ->isSatisfiedBy (new Item (100 )));
32
+ $ this ->assertFalse ($ andSpec ->isSatisfiedBy (new Item (150 )));
33
+ $ this ->assertFalse ($ andSpec ->isSatisfiedBy (new Item (1 )));
34
+ $ this ->assertFalse ($ andSpec ->isSatisfiedBy (new Item (51 )));
35
+ $ this ->assertTrue ($ andSpec ->isSatisfiedBy (new Item (100 )));
36
36
}
37
37
38
38
public function testCanNot ()
39
39
{
40
40
$ spec1 = new PriceSpecification (50 , 100 );
41
- $ orSpec = new NotSpecification ($ spec1 );
41
+ $ notSpec = new NotSpecification ($ spec1 );
42
42
43
- $ this ->assertTrue ($ orSpec ->isSatisfiedBy (new Item (150 )));
44
- $ this ->assertFalse ($ orSpec ->isSatisfiedBy (new Item (50 )));
43
+ $ this ->assertTrue ($ notSpec ->isSatisfiedBy (new Item (150 )));
44
+ $ this ->assertFalse ($ notSpec ->isSatisfiedBy (new Item (50 )));
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments