Skip to content

Commit 32d3038

Browse files
[2.3] Remove useless tests skips
1 parent 7caf7df commit 32d3038

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,6 @@ public function testValidation()
235235

236236
public function testAnnotations()
237237
{
238-
if (!class_exists('Doctrine\\Common\\Version')) {
239-
$this->markTestSkipped('Doctrine is not available.');
240-
}
241-
242238
$container = $this->createContainerFromFile('full');
243239

244240
$this->assertEquals($container->getParameter('kernel.cache_dir').'/annotations', $container->getDefinition('annotations.file_cache_reader')->getArgument(1));

Tests/Functional/WebTestCase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ public static function assertRedirect($response, $location)
2323
self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));
2424
}
2525

26-
protected function setUp()
27-
{
28-
if (!class_exists('Twig_Environment')) {
29-
$this->markTestSkipped('Twig is not available.');
30-
}
31-
32-
parent::setUp();
33-
}
34-
3526
protected function deleteTmpDir($testCase)
3627
{
3728
if (!file_exists($dir = sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase)) {

Tests/Templating/Helper/FormHelperDivLayoutTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ class FormHelperDivLayoutTest extends AbstractDivLayoutTest
2727
*/
2828
protected $engine;
2929

30-
protected function setUp()
31-
{
32-
if (!class_exists('Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper')) {
33-
$this->markTestSkipped('The "FrameworkBundle" is not available');
34-
}
35-
36-
if (!class_exists('Symfony\Component\Templating\PhpEngine')) {
37-
$this->markTestSkipped('The "Templating" component is not available');
38-
}
39-
40-
parent::setUp();
41-
}
42-
4330
protected function getExtensions()
4431
{
4532
// should be moved to the Form component once absolute file paths are supported

Tests/Templating/Helper/FormHelperTableLayoutTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ class FormHelperTableLayoutTest extends AbstractTableLayoutTest
2727
*/
2828
protected $engine;
2929

30-
protected function setUp()
31-
{
32-
if (!class_exists('Symfony\Bundle\FrameworkBundle\Templating\Helper\TranslatorHelper')) {
33-
$this->markTestSkipped('The "FrameworkBundle" is not available');
34-
}
35-
36-
if (!class_exists('Symfony\Component\Templating\PhpEngine')) {
37-
$this->markTestSkipped('The "Templating" component is not available');
38-
}
39-
40-
parent::setUp();
41-
}
42-
4330
protected function getExtensions()
4431
{
4532
// should be moved to the Form component once absolute file paths are supported

0 commit comments

Comments
 (0)