Skip to content

Commit 5b2a02a

Browse files
authored
Use expectNotToPerformAssertions instead of addToAssertionCount (#707)
1 parent f664fe1 commit 5b2a02a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Latest stable version](https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
44
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://php.net)
55
[![License](https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg)](LICENSE)
6-
![Tests](https://img.shields.io/badge/tests-3237-brightgreen.svg)
6+
![Tests](https://img.shields.io/badge/tests-3238-brightgreen.svg)
77
[![Downloads](https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
88

99
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=main&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)

tests/AutoReview/ChangelogTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testFixerAddingIsListed(FixerInterface $fixer): void
3636
public function testFixerDeprecatingIsListed(FixerInterface $fixer): void
3737
{
3838
if (!$fixer instanceof DeprecatedFixerInterface) {
39-
$this->addToAssertionCount(1);
39+
$this->expectNotToPerformAssertions();
4040

4141
return;
4242
}

tests/Fixer/AbstractFixerTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final public function testFixerDefinitionSummaryStartWithCorrectCase(): void
5656
final public function testFixerDefinitionRiskyDescriptionStartWithLowercase(): void
5757
{
5858
if (!$this->fixer->isRisky()) {
59-
$this->addToAssertionCount(1);
59+
$this->expectNotToPerformAssertions();
6060

6161
return;
6262
}
@@ -70,7 +70,7 @@ final public function testFixerDefinitionRiskyDescriptionStartWithLowercase(): v
7070
final public function testFixerDefinitionRiskyDescriptionDoesNotEndWithDot(): void
7171
{
7272
if (!$this->fixer->isRisky()) {
73-
$this->addToAssertionCount(1);
73+
$this->expectNotToPerformAssertions();
7474

7575
return;
7676
}

tests/Fixer/NumericLiteralSeparatorFixerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
*/
2323
final class NumericLiteralSeparatorFixerTest extends AbstractFixerTestCase
2424
{
25+
public function testIsRisky(): void
26+
{
27+
self::assertFalse($this->fixer->isRisky());
28+
}
29+
2530
public function testConfiguration(): void
2631
{
2732
$options = $this->fixer->getConfigurationDefinition()->getOptions();

0 commit comments

Comments
 (0)