Skip to content

Commit

Permalink
Simplify some tests (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Dec 7, 2022
1 parent 1513193 commit 6106a1f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
5 changes: 5 additions & 0 deletions tests/Finder/CpuInfoFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ protected function setUp(): void
$this->finder = new CpuInfoFinder();
}

protected function tearDown(): void
{
unset($this->finder);
}

public function test_it_can_describe_itself(): void
{
self::assertSame('CpuInfoFinder', $this->finder->toString());
Expand Down
4 changes: 1 addition & 3 deletions tests/Finder/HwLogicalFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ final class HwLogicalFinderTest extends PopenBasedFinderTestCase
{
public function test_it_can_describe_itself(): void
{
$finder = new HwLogicalFinder();

self::assertSame('HwLogicalFinder', $finder->toString());
self::assertSame('HwLogicalFinder', $this->getFinder()->toString());
}

protected function getFinder(): PopenBasedFinder
Expand Down
4 changes: 1 addition & 3 deletions tests/Finder/HwPhysicalFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ final class HwPhysicalFinderTest extends PopenBasedFinderTestCase
{
public function test_it_can_describe_itself(): void
{
$finder = new HwPhysicalFinder();

self::assertSame('HwPhysicalFinder', $finder->toString());
self::assertSame('HwPhysicalFinder', $this->getFinder()->toString());
}

protected function getFinder(): PopenBasedFinder
Expand Down
4 changes: 1 addition & 3 deletions tests/Finder/WindowsWmicLogicalFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ final class WindowsWmicLogicalFinderTest extends PopenBasedFinderTestCase
{
public function test_it_can_describe_itself(): void
{
$finder = new WindowsWmicLogicalFinder();

self::assertSame('WindowsWmicLogicalFinder', $finder->toString());
self::assertSame('WindowsWmicLogicalFinder', $this->getFinder()->toString());
}

protected function getFinder(): PopenBasedFinder
Expand Down
4 changes: 1 addition & 3 deletions tests/Finder/WindowsWmicPhysicalFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ final class WindowsWmicPhysicalFinderTest extends PopenBasedFinderTestCase
{
public function test_it_can_describe_itself(): void
{
$finder = new WindowsWmicPhysicalFinder();

self::assertSame('WindowsWmicPhysicalFinder', $finder->toString());
self::assertSame('WindowsWmicPhysicalFinder', $this->getFinder()->toString());
}

protected function getFinder(): PopenBasedFinder
Expand Down

0 comments on commit 6106a1f

Please sign in to comment.