Skip to content

Commit 82f003e

Browse files
minor symfony#31132 [VarDumper][Ldap] relax some locally failing tests (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [VarDumper][Ldap] relax some locally failing tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 88b2765 [VarDumper][Ldap] relax some locally failing tests
2 parents f458e5b + 88b2765 commit 82f003e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Symfony/Component/Ldap/Tests/LdapTestCase.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class LdapTestCase extends TestCase
88
{
99
protected function getLdapConfig()
1010
{
11+
$h = @ldap_connect(getenv('LDAP_HOST'), getenv('LDAP_PORT'));
12+
13+
if (!$h || !@ldap_bind($h)) {
14+
$this->markTestSkipped('No server is listening on LDAP_HOST:LDAP_PORT');
15+
}
16+
17+
ldap_close($h);
18+
1119
return [
1220
'host' => getenv('LDAP_HOST'),
1321
'port' => getenv('LDAP_PORT'),

src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testReflectionCaster()
3737
%A]
3838
constants: array:3 [
3939
"IS_IMPLICIT_ABSTRACT" => 16
40-
"IS_EXPLICIT_ABSTRACT" => 32
40+
"IS_EXPLICIT_ABSTRACT" => %d
4141
"IS_FINAL" => %d
4242
]
4343
properties: array:%d [

0 commit comments

Comments
 (0)