Skip to content

Commit 16085b7

Browse files
[2.3] Remove useless tests skips
1 parent b430298 commit 16085b7

19 files changed

+0
-142
lines changed

Test/FormIntegrationTestCase.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ abstract class FormIntegrationTestCase extends \PHPUnit_Framework_TestCase
2626

2727
protected function setUp()
2828
{
29-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
30-
$this->markTestSkipped('The "EventDispatcher" component is not available');
31-
}
32-
3329
$this->factory = Forms::createFormFactoryBuilder()
3430
->addExtensions($this->getExtensions())
3531
->getFormFactory();

Tests/AbstractFormTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ abstract class AbstractFormTest extends \PHPUnit_Framework_TestCase
3434

3535
protected function setUp()
3636
{
37-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
38-
$this->markTestSkipped('The "EventDispatcher" component is not available');
39-
}
40-
4137
// We need an actual dispatcher to use the deprecated
4238
// bindRequest() method
4339
$this->dispatcher = new EventDispatcher();

Tests/CompoundFormTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,6 @@ public function requestMethodProvider()
583583
*/
584584
public function testSubmitPostOrPutRequest($method)
585585
{
586-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
587-
$this->markTestSkipped('The "HttpFoundation" component is not available');
588-
}
589-
590586
$path = tempnam(sys_get_temp_dir(), 'sf2');
591587
touch($path);
592588

@@ -635,10 +631,6 @@ public function testSubmitPostOrPutRequest($method)
635631
*/
636632
public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
637633
{
638-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
639-
$this->markTestSkipped('The "HttpFoundation" component is not available');
640-
}
641-
642634
$path = tempnam(sys_get_temp_dir(), 'sf2');
643635
touch($path);
644636

@@ -686,10 +678,6 @@ public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
686678
*/
687679
public function testSubmitPostOrPutRequestWithSingleChildForm($method)
688680
{
689-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
690-
$this->markTestSkipped('The "HttpFoundation" component is not available');
691-
}
692-
693681
$path = tempnam(sys_get_temp_dir(), 'sf2');
694682
touch($path);
695683

@@ -726,10 +714,6 @@ public function testSubmitPostOrPutRequestWithSingleChildForm($method)
726714
*/
727715
public function testSubmitPostOrPutRequestWithSingleChildFormUploadedFile($method)
728716
{
729-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
730-
$this->markTestSkipped('The "HttpFoundation" component is not available');
731-
}
732-
733717
$path = tempnam(sys_get_temp_dir(), 'sf2');
734718
touch($path);
735719

@@ -755,10 +739,6 @@ public function testSubmitPostOrPutRequestWithSingleChildFormUploadedFile($metho
755739

756740
public function testSubmitGetRequest()
757741
{
758-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
759-
$this->markTestSkipped('The "HttpFoundation" component is not available');
760-
}
761-
762742
$values = array(
763743
'author' => array(
764744
'firstName' => 'Bernhard',
@@ -787,10 +767,6 @@ public function testSubmitGetRequest()
787767

788768
public function testSubmitGetRequestWithEmptyRootFormName()
789769
{
790-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
791-
$this->markTestSkipped('The "HttpFoundation" component is not available');
792-
}
793-
794770
$values = array(
795771
'firstName' => 'Bernhard',
796772
'lastName' => 'Schussek',

Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase
3434

3535
protected function setUp()
3636
{
37-
if (!class_exists('Symfony\Component\EventDispatcher\Event')) {
38-
$this->markTestSkipped('The "EventDispatcher" component is not available');
39-
}
40-
41-
if (!class_exists('Symfony\Component\PropertyAccess\PropertyAccess')) {
42-
$this->markTestSkipped('The "PropertyAccess" component is not available');
43-
}
44-
4537
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
4638
$this->propertyAccessor = $this->getMock('Symfony\Component\PropertyAccess\PropertyAccessorInterface');
4739
$this->mapper = new PropertyPathMapper($this->propertyAccessor);

Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ class FixRadioInputListenerTest extends \PHPUnit_Framework_TestCase
2121

2222
protected function setUp()
2323
{
24-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
25-
$this->markTestSkipped('The "EventDispatcher" component is not available');
26-
}
27-
2824
parent::setUp();
2925

3026
$this->choiceList = new SimpleChoiceList(array('' => 'Empty', 0 => 'A', 1 => 'B'));

Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php

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

1717
class FixUrlProtocolListenerTest extends \PHPUnit_Framework_TestCase
1818
{
19-
protected function setUp()
20-
{
21-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
22-
$this->markTestSkipped('The "EventDispatcher" component is not available');
23-
}
24-
}
25-
2619
public function testFixHttpUrl()
2720
{
2821
$data = "www.symfony.com";

Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase
2222

2323
protected function setUp()
2424
{
25-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
26-
$this->markTestSkipped('The "EventDispatcher" component is not available');
27-
}
28-
2925
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
3026
$this->factory = $this->getMock('Symfony\Component\Form\FormFactoryInterface');
3127
$this->form = $this->getForm('axes');

Tests/Extension/Core/EventListener/ResizeFormListenerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ class ResizeFormListenerTest extends \PHPUnit_Framework_TestCase
2424

2525
protected function setUp()
2626
{
27-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
28-
$this->markTestSkipped('The "EventDispatcher" component is not available');
29-
}
30-
3127
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
3228
$this->factory = $this->getMock('Symfony\Component\Form\FormFactoryInterface');
3329
$this->form = $this->getBuilder()

Tests/Extension/Core/EventListener/TrimListenerTest.php

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

1717
class TrimListenerTest extends \PHPUnit_Framework_TestCase
1818
{
19-
protected function setUp()
20-
{
21-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
22-
$this->markTestSkipped('The "EventDispatcher" component is not available');
23-
}
24-
}
25-
2619
public function testTrim()
2720
{
2821
$data = " Foo! ";

Tests/Extension/Csrf/CsrfProvider/SessionCsrfProviderTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ class SessionCsrfProviderTest extends \PHPUnit_Framework_TestCase
2020

2121
protected function setUp()
2222
{
23-
if (!class_exists('Symfony\Component\HttpFoundation\Session\Session')) {
24-
$this->markTestSkipped('The "HttpFoundation" component is not available');
25-
}
26-
2723
$this->session = $this->getMock(
2824
'Symfony\Component\HttpFoundation\Session\Session',
2925
array(),

0 commit comments

Comments
 (0)