You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertEquals("select *, CONCAT(ST_AsText(addresses.{$castedAttr}), ',', ST_SRID(addresses.{$castedAttr})) as {$castedAttr} from `addresses` where ST_Distance(
38
-
ST_SRID({$castedAttr}, ?),
46
+
// 3. Assert
47
+
$this->assertEquals(
48
+
expected: "select *, CONCAT(ST_AsText(addresses.$castedAttr), ',', ST_SRID(addresses.$castedAttr)) as $castedAttr from `addresses` where ST_Distance(
$this->assertEquals("select *, CONCAT(ST_AsText(addresses.{$castedAttr}), ',', ST_SRID(addresses.{$castedAttr})) as {$castedAttr} from `addresses` order by ST_Distance(
55
-
ST_SRID({$castedAttr}, ?),
70
+
// 3. Assert
71
+
$this->assertEquals(
72
+
expected: "select *, CONCAT(ST_AsText(addresses.$castedAttr), ',', ST_SRID(addresses.$castedAttr)) as $castedAttr from `addresses` order by ST_Distance(
73
+
ST_SRID($castedAttr, ?),
56
74
ST_SRID(Point(?, ?), ?)
57
-
) asc", $queryForAsc->toSql());
75
+
) asc",
76
+
actual: $queryForAsc->toSql()
77
+
);
58
78
59
-
$this->assertEquals("select *, CONCAT(ST_AsText(addresses.{$castedAttr}), ',', ST_SRID(addresses.{$castedAttr})) as {$castedAttr} from `addresses` order by ST_Distance(
60
-
ST_SRID({$castedAttr}, ?),
79
+
$this->assertEquals(
80
+
expected: "select *, CONCAT(ST_AsText(addresses.$castedAttr), ',', ST_SRID(addresses.$castedAttr)) as $castedAttr from `addresses` order by ST_Distance(
$this->assertEquals("select *, CONCAT(ST_AsText(addresses.{$castedAttr}), ',', ST_SRID(addresses.{$castedAttr})) as {$castedAttr} from `addresses`", $address->query()->toSql());
98
+
// 2. Act & Assert
99
+
$this->assertEquals(
100
+
expected: "select *, CONCAT(ST_AsText(addresses.$castedAttr), ',', ST_SRID(addresses.$castedAttr)) as $castedAttr from `addresses`",
101
+
actual: $address->query()->toSql()
102
+
);
73
103
}
74
104
75
105
/**
@@ -78,14 +108,13 @@ public function test_newQuery(): void
0 commit comments