@@ 95-105 (lines=11) @@ | ||
92 | /** |
|
93 | * Test this. |
|
94 | */ |
|
95 | public function testThis() |
|
96 | { |
|
97 | $this |
|
98 | ->given($criteria = Criteria::this()) |
|
99 | ->then() |
|
100 | ->object($criteria) |
|
101 | ->isInstanceOf(Selector::class) |
|
102 | ->object($criteria->selector()) |
|
103 | ->isInstanceOf(This::class) |
|
104 | ; |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * Test callback. |
|
@@ 127-137 (lines=11) @@ | ||
124 | /** |
|
125 | * Test count. |
|
126 | */ |
|
127 | public function testCount() |
|
128 | { |
|
129 | $this |
|
130 | ->given($criteria = Criteria::count()) |
|
131 | ->then() |
|
132 | ->object($criteria) |
|
133 | ->isInstanceOf(Selector::class) |
|
134 | ->object($criteria->selector()) |
|
135 | ->isInstanceOf(Count::class) |
|
136 | ; |
|
137 | } |
|
138 | ||
139 | /** |
|
140 | * Test gt. |
|
@@ 110-122 (lines=13) @@ | ||
107 | /** |
|
108 | * Test callback. |
|
109 | */ |
|
110 | public function testCallback() |
|
111 | { |
|
112 | $this |
|
113 | ->given($criteria = Criteria::callback(function () { |
|
114 | ||
115 | })) |
|
116 | ->then() |
|
117 | ->object($criteria) |
|
118 | ->isInstanceOf(Selector::class) |
|
119 | ->object($criteria->selector()) |
|
120 | ->isInstanceOf(Callback::class) |
|
121 | ; |
|
122 | } |
|
123 | ||
124 | /** |
|
125 | * Test count. |