Skip to content

Commit 0f35503

Browse files
committed
Removing constructor tests
Removing all tests that creates a new instance but doesn't call any methods nor preform any assertions.
1 parent f6c5b53 commit 0f35503

7 files changed

+0
-55
lines changed

Tests/Unit/Consumption/Extension/DoctrineClearIdentityMapExtensionTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616

1717
class DoctrineClearIdentityMapExtensionTest extends TestCase
1818
{
19-
/**
20-
* @doesNotPerformAssertions
21-
*/
22-
public function testCouldBeConstructedWithRequiredArguments()
23-
{
24-
new DoctrineClearIdentityMapExtension($this->createRegistryMock());
25-
}
26-
2719
public function testShouldClearIdentityMap()
2820
{
2921
$manager = $this->createManagerMock();

Tests/Unit/Consumption/Extension/DoctrinePingConnectionExtensionTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717

1818
class DoctrinePingConnectionExtensionTest extends TestCase
1919
{
20-
/**
21-
* @doesNotPerformAssertions
22-
*/
23-
public function testCouldBeConstructedWithRequiredAttributes()
24-
{
25-
new DoctrinePingConnectionExtension($this->createRegistryMock());
26-
}
27-
2820
public function testShouldNotReconnectIfConnectionIsOK()
2921
{
3022
$connection = $this->createConnectionMock();

Tests/Unit/Consumption/Extension/ResetServicesExtensionTest.php

-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@
1616

1717
class ResetServicesExtensionTest extends TestCase
1818
{
19-
/**
20-
* @doesNotPerformAssertions
21-
*/
22-
public function testCouldBeConstructedWithRequiredArguments()
23-
{
24-
new ResetServicesExtension($this->createResetterMock());
25-
}
2619

2720
public function testItShouldResetServices()
2821
{

Tests/Unit/DependencyInjection/ConfigurationTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ public function testShouldBeFinal()
2525
$this->assertClassFinal(Configuration::class);
2626
}
2727

28-
/**
29-
* @doesNotPerformAssertions
30-
*/
31-
public function testCouldBeConstructedWithDebugAsArgument()
32-
{
33-
new Configuration(true);
34-
}
35-
3628
public function testShouldProcessSeveralTransports()
3729
{
3830
$configuration = new Configuration(true);

Tests/Unit/DependencyInjection/EnqueueExtensionTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ public function testShouldBeFinal()
3030
$this->assertClassFinal(EnqueueExtension::class);
3131
}
3232

33-
/**
34-
* @doesNotPerformAssertions
35-
*/
36-
public function testCouldBeConstructedWithoutAnyArguments()
37-
{
38-
new EnqueueExtension();
39-
}
40-
4133
public function testShouldRegisterConnectionFactory()
4234
{
4335
$container = $this->getContainerBuilder(true);

Tests/Unit/EnqueueBundleTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,4 @@ public function testShouldExtendBundleClass()
1515
{
1616
$this->assertClassExtends(Bundle::class, EnqueueBundle::class);
1717
}
18-
19-
/**
20-
* @doesNotPerformAssertions
21-
*/
22-
public function testCouldBeConstructedWithoutAnyArguments()
23-
{
24-
new EnqueueBundle();
25-
}
2618
}

Tests/Unit/Profiler/MessageQueueCollectorTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ public function testShouldExtendDataCollectorClass()
2323
$this->assertClassExtends(DataCollector::class, MessageQueueCollector::class);
2424
}
2525

26-
/**
27-
* @doesNotPerformAssertions
28-
*/
29-
public function testCouldBeConstructedWithEmptyConstructor()
30-
{
31-
new MessageQueueCollector();
32-
}
33-
3426
public function testShouldReturnExpectedName()
3527
{
3628
$collector = new MessageQueueCollector();

0 commit comments

Comments
 (0)