8000 minor #16187 [2.8][tests] Use @requires annotation when possible (nic… · symfony/ldap@9bd555e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bd555e

Browse files
minor #16187 [2.8][tests] Use @requires annotation when possible (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [2.8][tests] Use @requires annotation when possible | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 814d961 [tests] Use @requires annotation when possible
2 parents 509c3d7 + ca83ada commit 9bd555e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Tests/LdapClientTest.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@
1313

1414
use Symfony\Component\Ldap\LdapClient;
1515

16+
/**
17+
* @requires extension ldap
18+
*/
1619
class LdapClientTest extends \PHPUnit_Framework_TestCase
1720
{
18-
protected function setUp()
19-
{
20-
if (!extension_loaded('ldap')) {
21-
$this->markTestSkipped('The ldap extension is not available');
22-
}
23-
}
24-
2521
/**
2622
* @dataProvider provideLdapEscapeValues
2723
*/

0 commit comments

Comments
 (0)
0