@@ -53,35 +53,34 @@ public function testComplexActions(): void
53
53
54
54
$ pointInside = Sfc::point (3 , 5 );
55
55
$ pointOutside = Sfc::point (10 , 10 );
56
- $ this ->assertTrue ( $ this ->selectVal (
56
+ $ this ->assertEquals ( true , $ this ->selectVal (
57
57
$ hull ->contains ($ pointInside )
58
58
));
59
- $ this ->assertTrue ( $ this ->selectVal (
59
+ $ this ->assertEquals ( true , $ this ->selectVal (
60
60
$ pointInside ->within ($ hull )
61
61
));
62
- $ this ->assertFalse ( $ this ->selectVal (
62
+ $ this ->assertEquals ( false , $ this ->selectVal (
63
63
$ hull ->contains ($ pointOutside )
64
64
));
65
- $ this ->assertFalse ( $ this ->selectVal (
65
+ $ this ->assertEquals ( false , $ this ->selectVal (
66
66
$ pointOutside ->within ($ hull )
67
67
));
68
68
69
69
$ line = Sfc::lineFromText ('LINESTRING(3 3,10 10) ' );
70
- $ this ->assertFalse ( $ this ->selectVal (
70
+ $ this ->assertEquals ( false , this ->selectVal (
71
71
$ hull ->contains ($ line )
72
72
));
73
- $ this ->assertFalse ( $ this ->selectVal (
73
+ $ this ->assertEquals ( false , $ this ->selectVal (
74
74
$ line ->within ($ hull )
75
75
));
76
- $ this ->assertTrue ( $ this ->selectVal (
76
+ $ this ->assertEquals ( true , $ this ->selectVal (
77
77
$ hull ->intersects ($ line )
78
78
));
79
- $ this ->assertTrue ( $ this ->selectVal (
79
+ $ this ->assertEquals ( true , $ this ->selectVal (
80
80
$ line ->intersects ($ hull )
81
81
));
82
82
}
83
83
84
-
85
84
protected function selectVal (Expression $ expression )
86
85
{
87
86
$ query = $ this ->pdo ->prepare ("SELECT $ expression as value " );
0 commit comments