1 | <?php |
||||
2 | |||||
3 | declare(strict_types=1); |
||||
4 | |||||
5 | namespace Yiisoft\Yii\Widgets\Tests\Block; |
||||
6 | |||||
7 | use PHPUnit\Framework\TestCase; |
||||
8 | use Yiisoft\Definitions\Exception\CircularReferenceException; |
||||
9 | use Yiisoft\Definitions\Exception\InvalidConfigException; |
||||
10 | use Yiisoft\Definitions\Exception\NotInstantiableException; |
||||
11 | use Yiisoft\Factory\NotFoundException; |
||||
12 | use Yiisoft\Yii\Widgets\Block; |
||||
13 | use Yiisoft\Yii\Widgets\Tests\Support\TestTrait; |
||||
14 | |||||
15 | /** |
||||
16 | * @psalm-suppress PropertyNotSetInConstructor |
||||
17 | */ |
||||
18 | final class ImmutableTest extends TestCase |
||||
19 | { |
||||
20 | use TestTrait; |
||||
21 | |||||
22 | /** |
||||
23 | * @throws CircularReferenceException |
||||
24 | * @throws InvalidConfigException |
||||
25 | * @throws NotFoundException |
||||
26 | * @throws NotInstantiableException |
||||
27 | */ |
||||
28 | public function testImmutable(): void |
||||
29 | { |
||||
30 | $block = Block::widget(); |
||||
31 | $this->assertNotSame($block, $block->id(Block::class)); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
32 | $this->assertNotSame($block, $block->renderInPlace()); |
||||
0 ignored issues
–
show
The method
renderInPlace() does not exist on Yiisoft\Widget\Widget . Did you maybe mean render() ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
33 | } |
||||
34 | } |
||||
35 |