Skip to content

Commit 1607352

Browse files
committed
phpcs/phpstan
1 parent 78c163f commit 1607352

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

tests/unit/Mage/Reports/Model/Resource/Report/CollectionTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ public function testInitReport(string $modelClass = ''): void
132132
public function testGetReportFull(): void
133133
{
134134
static::markTestSkipped(self::SKIP_INCOMPLETE_MESSAGE);
135-
$this->assertInstanceOf(Mage_Reports_Model_Report::class, self::$subject->getReportFull(1, 1));
135+
/** @phpstan-ignore deadCode.unreachable */
136+
static::assertInstanceOf(Mage_Reports_Model_Report::class, self::$subject->getReportFull(1, 1));
136137
}
137138

138139
/**
@@ -141,7 +142,8 @@ public function testGetReportFull(): void
141142
public function testGetReport(): void
142143
{
143144
static::markTestSkipped(self::SKIP_INCOMPLETE_MESSAGE);
144-
$this->assertInstanceOf(Mage_Reports_Model_Report::class, self::$subject->getReport(1, 1));
145+
/** @phpstan-ignore deadCode.unreachable */
146+
static::assertInstanceOf(Mage_Reports_Model_Report::class, self::$subject->getReport(1, 1));
145147
}
146148

147149
/**
@@ -150,6 +152,7 @@ public function testGetReport(): void
150152
public function testTimeShift(): void
151153
{
152154
static::markTestSkipped(self::SKIP_INCOMPLETE_MESSAGE);
153-
$this->assertSame(self::$subject->timeShift(''));
155+
/** @phpstan-ignore deadCode.unreachable */
156+
static::assertSame(self::$subject->timeShift(''));
154157
}
155158
}

tests/unit/Mage/Tax/Helper/DataTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public function testGetCalculator(): void
7272
public function testGetProductPrice(): void
7373
{
7474
static::markTestSkipped();
75-
$this->assertSame('', self::$subject->getProductPrice());
75+
/** @phpstan-ignore deadCode.unreachable */
76+
static::assertSame('', self::$subject->getProductPrice());
7677
}
7778

7879
/**
@@ -130,7 +131,8 @@ public function testNeedPriceConversion(): void
130131
public function testGetPriceFormat(): void
131132
{
132133
static::markTestSkipped();
133-
$this->assertSame('', self::$subject->getPriceFormat());
134+
/** @phpstan-ignore deadCode.unreachable */
135+
static::assertSame('', self::$subject->getPriceFormat());
134136
}
135137

136138
/**
@@ -162,7 +164,8 @@ public function testGetAllRatesByProductClass(): void
162164
public function testGetPrice(): void
163165
{
164166
static::markTestSkipped();
165-
$this->assertFalse(self::$subject->getPrice());
167+
/** @phpstan-ignore deadCode.unreachable */
168+
static::assertFalse(self::$subject->getPrice());
166169
}
167170

168171
/**

0 commit comments

Comments
 (0)