Skip to content

Commit

Permalink
Revert "Remove crashing test"
Browse files Browse the repository at this point in the history
This reverts commit 2424d76.
  • Loading branch information
frankdekker committed Oct 6, 2024
1 parent a8fdddf commit 6e0d54e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/Unit/PHPStan/Lib/TypeNarrowerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace DR\Utils\Tests\Unit\PHPStan\Lib;

use DR\Utils\PHPStan\Lib\TypeNarrower;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr;
use PHPStan\PhpDoc\TypeStringResolver;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;

#[CoversClass(TypeNarrower::class)]
class TypeNarrowerTest extends TestCase
{
public function testGetTypesFromStringArray(): void
{
$arg = new Arg($this->createMock(Expr::class));

$narrower = new TypeNarrower($this->createMock(TypeStringResolver::class));
static::assertSame([], $narrower->getTypesFromStringArray($arg));
}
}

0 comments on commit 6e0d54e

Please sign in to comment.