Skip to content

Commit

Permalink
Removing constructor tests
Browse files Browse the repository at this point in the history
Removing all tests that creates a new instance but doesn't call any
methods nor preform any assertions.
  • Loading branch information
JimTools committed Jan 15, 2025
1 parent f6c5b53 commit 0f35503
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@

class DoctrineClearIdentityMapExtensionTest extends TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithRequiredArguments()
{
new DoctrineClearIdentityMapExtension($this->createRegistryMock());
}

public function testShouldClearIdentityMap()
{
$manager = $this->createManagerMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@

class DoctrinePingConnectionExtensionTest extends TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithRequiredAttributes()
{
new DoctrinePingConnectionExtension($this->createRegistryMock());
}

public function testShouldNotReconnectIfConnectionIsOK()
{
$connection = $this->createConnectionMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@

class ResetServicesExtensionTest extends TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithRequiredArguments()
{
new ResetServicesExtension($this->createResetterMock());
}

public function testItShouldResetServices()
{
Expand Down
8 changes: 0 additions & 8 deletions Tests/Unit/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ public function testShouldBeFinal()
$this->assertClassFinal(Configuration::class);
}

/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithDebugAsArgument()
{
new Configuration(true);
}

public function testShouldProcessSeveralTransports()
{
$configuration = new Configuration(true);
Expand Down
8 changes: 0 additions & 8 deletions Tests/Unit/DependencyInjection/EnqueueExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ public function testShouldBeFinal()
$this->assertClassFinal(EnqueueExtension::class);
}

/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithoutAnyArguments()
{
new EnqueueExtension();
}

public function testShouldRegisterConnectionFactory()
{
$container = $this->getContainerBuilder(true);
Expand Down
8 changes: 0 additions & 8 deletions Tests/Unit/EnqueueBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,4 @@ public function testShouldExtendBundleClass()
{
$this->assertClassExtends(Bundle::class, EnqueueBundle::class);
}

/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithoutAnyArguments()
{
new EnqueueBundle();
}
}
8 changes: 0 additions & 8 deletions Tests/Unit/Profiler/MessageQueueCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ public function testShouldExtendDataCollectorClass()
$this->assertClassExtends(DataCollector::class, MessageQueueCollector::class);
}

/**
* @doesNotPerformAssertions
*/
public function testCouldBeConstructedWithEmptyConstructor()
{
new MessageQueueCollector();
}

public function testShouldReturnExpectedName()
{
$collector = new MessageQueueCollector();
Expand Down

0 comments on commit 0f35503

Please # to comment.