Skip to content

Commit 4aed5e6

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [HttpKernel] Fixed bug with purging of HTTPS URLs fix some risky tests [DI] [YamlFileLoader] change error message of a non existing file [Security] Added option to return true in the method isRememberMeRequested
2 parents bbaa492 + 7cb7367 commit 4aed5e6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Tests/LegacyOptionsResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public function testTypeAliasesForAllowedTypes()
8989
'force' => 'boolean',
9090
));
9191

92-
$this->resolver->resolve(array(
92+
$this->assertSame(array('force' => true), $this->resolver->resolve(array(
9393
'force' => true,
94-
));
94+
)));
9595
}
9696

9797
public function testResolveLazyDependencyOnOptional()

Tests/OptionsResolver2Dot6Test.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ public function testFailIfCyclicDependencyBetweenNormalizerAndLazyOption()
11021102
$this->resolver->resolve();
11031103
}
11041104

1105-
public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
1105+
public function testCaughtExceptionFromNormalizerDoesNotCrashOptionResolver()
11061106
{
11071107
$throw = true;
11081108

@@ -1116,7 +1116,7 @@ public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
11161116
}
11171117
});
11181118

1119-
$this->resolver->setNormalizer('thrower', function (Options $options) use (&$throw) {
1119+
$this->resolver->setNormalizer('thrower', function () use (&$throw) {
11201120
if ($throw) {
11211121
$throw = false;
11221122
throw new \UnexpectedValueException('throwing');
@@ -1125,10 +1125,10 @@ public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
11251125
return true;
11261126
});
11271127

1128-
$this->resolver->resolve();
1128+
$this->assertSame(array('catcher' => false, 'thrower' => true), $this->resolver->resolve());
11291129
}
11301130

1131-
public function testCatchedExceptionFromLazyDoesNotCrashOptionResolver()
1131+
public function testCaughtExceptionFromLazyDoesNotCrashOptionResolver()
11321132
{
11331133
$throw = true;
11341134

@@ -1149,7 +1149,7 @@ public function testCatchedExceptionFromLazyDoesNotCrashOptionResolver()
11491149
return true;
11501150
});
11511151

1152-
$this->resolver->resolve();
1152+
$this->assertSame(array('catcher' => false, 'thrower' => true), $this->resolver->resolve());
11531153
}
11541154

11551155
public function testInvokeEachNormalizerOnlyOnce()

0 commit comments

Comments
 (0)