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
Fixed wrong order of parameters for some tests. This didn't have much impact on the test itself, but it was confusing when an actual value was treated as an expected and vice versa.
// also check setters/getters if wrong/no attribute is given
157
157
static::assertEquals(
158
-
$userFunction->getFakeAttributeName, null, 'Getter with unknown attribute did not return null, instead returned: ' . $userFunction->getFakeAttributeName
158
+
null, $userFunction->getFakeAttributeName, 'Getter with unknown attribute did not return null, instead returned: ' . $userFunction->getFakeAttributeName
159
159
);
160
160
161
161
static::assertEquals(
162
-
$userFunction->setFakeAttributeName, null, 'Setter with unknown attribute did not return chainable object, instead returned..: ' . $userFunction->setFakeAttributeName
162
+
null, $userFunction->setFakeAttributeName, 'Setter with unknown attribute did not return chainable object, instead returned..: ' . $userFunction->setFakeAttributeName
163
163
);
164
164
165
165
// Check setting/getting class properties via set/get methods
166
166
static::assertSame(
167
-
$userFunction->set('FakeAttributeName', 1), $userFunction, 'Set-method did not return chainable object'
167
+
$userFunction, $userFunction->set('FakeAttributeName', 1), 'Set-method did not return chainable object'
168
168
);
169
169
static::assertSame(
170
-
$userFunction->get('FakeAttributeName'), 1, 'Get-method did not return previously set property'
170
+
1, $userFunction->get('FakeAttributeName'), 'Get-method did not return previously set property'
171
171
);
172
172
173
173
// Check giving the set method a non-string key
@@ -184,7 +184,7 @@ public function testRegisterListAndUnRegisterAqlUserFunctionWithGettersAndSetter
184
184
$result = $userFunction->register();
185
185
186
186
static::assertEquals(
187
-
$result['error'], false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($result, 1)
187
+
false, $result['error'], 'result[\'error\'] Did not return false, instead returned: ' . print_r($result, 1)
0 commit comments