Skip to content

Commit 2d92ac0

Browse files
minor #16186 [2.7][tests] Use @requires annotation when possible (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7][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 ------- b028aea [tests] Use @requires annotation when possible
2 parents 9494c37 + f83f042 commit 2d92ac0

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

Tests/DataCollectorTranslatorTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717

1818
class DataCollectorTranslatorTest extends \PHPUnit_Framework_TestCase
1919
{
20-
protected function setUp()
21-
{
22-
if (!class_exists('Symfony\Component\HttpKernel\DataCollector\DataCollector')) {
23-
$this->markTestSkipped('The "DataCollector" is not available');
24-
}
25-
}
2620
public function testCollectMessages()
2721
{
2822
$collector = $this->createCollector();

Tests/Loader/JsonFileLoaderTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@
1616

1717
class JsonFileLoaderTest extends \PHPUnit_Framework_TestCase
1818
{
19-
protected function setUp()
20-
{
21-
if (!class_exists('Symfony\Component\Config\Loader\Loader')) {
22-
$this->markTestSkipped('The "Config" component is not available');
23-
}
24-
}
25-
2619
public function testLoad()
2720
{
2821
$loader = new JsonFileLoader();

Tests/LoggingTranslatorTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717

1818
class LoggingTranslatorTest extends \PHPUnit_Framework_TestCase
1919
{
20-
protected function setUp()
21-
{
22-
if (!interface_exists('Psr\Log\LoggerInterface')) {
23-
$this->markTestSkipped('The "LoggerInterface" is not available');
24-
}
25-
}
26-
2720
public function testTransWithNoTranslationIsLogged()
2821
{
2922
$logger = $this->getMock('Psr\Log\LoggerInterface');

0 commit comments

Comments
 (0)