Skip to content

Commit

Permalink
[*]: add one more test case v2
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed May 13, 2020
1 parent 33d4e36 commit 40caf62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ public function testSimpleOneClass(): void
public function testSimpleDirectory(): void
{
$phpCode = PhpCodeParser::getPhpFiles(__DIR__ . '/');

$phpClasses = $phpCode->getClasses();

static::assertSame(Dummy::class, $phpClasses[Dummy::class]->name);

static::assertSame(Dummy2::class, $phpClasses[Dummy2::class]->name);
static::assertSame(DummyInterface::class, $phpClasses[Dummy2::class]->interfaces[0]);

$phpInterfaces = $phpCode->getInterfaces();

static::assertSame('array{parsedParamTagStr: string, variableName: array<array-key, null>|string}', $phpInterfaces[DummyInterface::class]->methods['withComplexReturnArray']->returnTypeFromPhpDocPslam);
}

public function testSimpleStringInput(): void
Expand Down

0 comments on commit 40caf62

Please sign in to comment.