Skip to content

Commit

Permalink
Remove ForbiddenNestedCallInAssertMethodCallRule as overly detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 19, 2023
1 parent 890155d commit 1bcdf3e
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 291 deletions.
41 changes: 1 addition & 40 deletions docs/rules_overview.md
@@ -1,4 +1,4 @@
# 85 Rules Overview
# 84 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -720,45 +720,6 @@ return strlen('name');

<br>

## ForbiddenNestedCallInAssertMethodCallRule

Decouple method call in assert to standalone line to make test core more readable

- class: [`Symplify\PHPStanRules\Rules\ForbiddenNestedCallInAssertMethodCallRule`](../src/Rules/ForbiddenNestedCallInAssertMethodCallRule.php)

```php
use PHPUnit\Framework\TestCase;

final class SomeClass extends TestCase
{
public function test()
{
$this->assertSame('oooo', $this->someMethodCall());
}
}
```

:x:

<br>

```php
use PHPUnit\Framework\TestCase;

final class SomeClass extends TestCase
{
public function test()
{
$result = $this->someMethodCall();
$this->assertSame('oooo', $result);
}
}
```

:+1:

<br>

## ForbiddenNodeRule

"%s" is forbidden to use
Expand Down
111 changes: 0 additions & 111 deletions src/Rules/ForbiddenNestedCallInAssertMethodCallRule.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1bcdf3e

Please sign in to comment.