Skip to content

Commit cc4b820

Browse files
[2.3] Remove useless tests skips
1 parent bc7b3e1 commit cc4b820

28 files changed

+0
-242
lines changed

Tests/Bundle/BundleTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ class BundleTest extends \PHPUnit_Framework_TestCase
1919
{
2020
public function testRegisterCommands()
2121
{
22-
if (!class_exists('Symfony\Component\Console\Application')) {
23-
$this->markTestSkipped('The "Console" component is not available');
24-
}
25-
26-
if (!interface_exists('Symfony\Component\DependencyInjection\ContainerAwareInterface')) {
27-
$this->markTestSkipped('The "DependencyInjection" component is not available');
28-
}
29-
30-
if (!class_exists('Symfony\Component\Finder\Finder')) {
31-
$this->markTestSkipped('The "Finder" component is not available');
32-
}
33-
3422
$cmd = new FooCommand();
3523
$app = $this->getMock('Symfony\Component\Console\Application');
3624
$app->expects($this->once())->method('add')->with($this->equalTo($cmd));

Tests/ClientTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020

2121
class ClientTest extends \PHPUnit_Framework_TestCase
2222
{
23-
protected function setUp()
24-
{
25-
if (!class_exists('Symfony\Component\BrowserKit\Client')) {
26-
$this->markTestSkipped('The "BrowserKit" component is not available');
27-
}
28-
}
29-
3023
public function testDoRequest()
3124
{
3225
$client = new Client(new TestHttpKernel());
@@ -48,14 +41,6 @@ public function testDoRequest()
4841

4942
public function testGetScript()
5043
{
51-
if (!class_exists('Symfony\Component\Process\Process')) {
52-
$this->markTestSkipped('The "Process" component is not available');
53-
}
54-
55-
if (!class_exists('Symfony\Component\ClassLoader\ClassLoader')) {
56-
$this->markTestSkipped('The "ClassLoader" component is not available');
57-
}
58-
5944
$client = new TestClient(new TestHttpKernel());
6045
$client->insulate();
6146
$client->request('GET', '/');

Tests/Controller/ControllerResolverTest.php

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

1717
class ControllerResolverTest extends \PHPUnit_Framework_TestCase
1818
{
19-
protected function setUp()
20-
{
21-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
22-
$this->markTestSkipped('The "HttpFoundation" component is not available');
23-
}
24-
}
25-
2619
public function testGetControllerWithoutControllerParameter()
2720
{
2821
$logger = $this->getMock('Psr\Log\LoggerInterface');

Tests/DataCollector/ConfigDataCollectorTest.php

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

2020
class ConfigDataCollectorTest extends \PHPUnit_Framework_TestCase
2121
{
22-
protected function setUp()
23-
{
24-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
25-
$this->markTestSkipped('The "HttpFoundation" component is not available');
26-
}
27-
}
28-
2922
public function testCollect()
3023
{
3124
$kernel = new KernelForTest('test', true);

Tests/DataCollector/ExceptionDataCollectorTest.php

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

1919
class ExceptionDataCollectorTest extends \PHPUnit_Framework_TestCase
2020
{
21-
protected function setUp()
22-
{
23-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
24-
$this->markTestSkipped('The "HttpFoundation" component is not available');
25-
}
26-
}
27-
2821
public function testCollect()
2922
{
3023
$e = new \Exception('foo', 500);

Tests/DataCollector/LoggerDataCollectorTest.php

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

1919
class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase
2020
{
21-
protected function setUp()
22-
{
23-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
24-
$this->markTestSkipped('The "HttpFoundation" component is not available');
25-
}
26-
}
27-
2821
/**
2922
* @dataProvider getCollectTestData
3023
*/

Tests/DataCollector/MemoryDataCollectorTest.php

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

1818
class MemoryDataCollectorTest extends \PHPUnit_Framework_TestCase
1919
{
20-
protected function setUp()
21-
{
22-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
23-
$this->markTestSkipped('The "HttpFoundation" component is not available');
24-
}
25-
}
26-
2720
public function testCollect()
2821
{
2922
$collector = new MemoryDataCollector();

Tests/DataCollector/RequestDataCollectorTest.php

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

2323
class RequestDataCollectorTest extends \PHPUnit_Framework_TestCase
2424
{
25-
protected function setUp()
26-
{
27-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
28-
$this->markTestSkipped('The "HttpFoundation" component is not available');
29-
}
30-
}
31-
3225
/**
3326
* @dataProvider provider
3427
*/

Tests/DataCollector/TimeDataCollectorTest.php

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

1818
class TimeDataCollectorTest extends \PHPUnit_Framework_TestCase
1919
{
20-
protected function setUp()
21-
{
22-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
23-
$this->markTestSkipped('The "HttpFoundation" component is not available');
24-
}
25-
}
26-
2720
public function testCollect()
2821
{
2922
$c = new TimeDataCollector();

Tests/Debug/TraceableEventDispatcherTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@
2222

2323
class TraceableEventDispatcherTest extends \PHPUnit_Framework_TestCase
2424
{
25-
protected function setUp()
26-
{
27-
if (!class_exists('Symfony\Component\EventDispatcher\EventDispatcher')) {
28-
$this->markTestSkipped('The "EventDispatcher" component is not available');
29-
}
30-
31-
if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
32-
$this->markTestSkipped('The "HttpFoundation" component is not available');
33-
}
34-
}
35-
3625
public function testAddRemoveListener()
3726
{
3827
$dispatcher = new EventDispatcher();

0 commit comments

Comments
 (0)