Skip to content

Commit ca83ada

Browse files
[tests] Use @requires annotation when possible
1 parent 652bd95 commit ca83ada

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)