Skip to content

Commit b00e509

Browse files
[VarDumper][Ldap] relax some locally failing tests
1 parent b7bdf2c commit b00e509

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('Not 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)