Skip to content

Commit df13135

Browse files
Merge branch '6.2' into 6.3
* 6.2: Update ComposerPlugin.php [Notifier] [OvhCloud] handle invalid receiver [Security] Return default value instead of deferring to lower prio resolvers when using #[CurrentUser] and no user is found [Cache] fix collecting cache stats when nesting computations [VarDumper] Fix JS to expand / collapse [Validator] Fix Email validator logic Fix user_identifier support after username has been deprecated in favor of it. [Tests] Remove `$this` occurrences in future static data providers [PropertyInfo] Fixes constructor extractor for mixed type use method_exists() instead of catching reflection exceptions
2 parents 3a48a6d + c61e4bb commit df13135

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,19 @@ public function testParseThrowsInsteadOfNotice()
170170

171171
public function shortCircuitProviderEvaluate()
172172
{
173-
$object = $this->getMockBuilder(\stdClass::class)->setMethods(['foo'])->getMock();
174-
$object->expects($this->never())->method('foo');
173+
$object = new class(\Closure::fromCallable([static::class, 'fail'])) {
174+
private $fail;
175+
176+
public function __construct(callable $fail)
177+
{
178+
$this->fail = $fail;
179+
}
180+
181+
public function foo()
182+
{
183+
($this->fail)();
184+
}
185+
};
175186

176187
return [
177188
['false and object.foo()', ['object' => $object], false],

0 commit comments

Comments
 (0)