Skip to content

Commit

Permalink
[+]: testing new phpdocumentor code v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Moelleken committed Nov 28, 2022
1 parent b48bf58 commit a662568
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/ParserTest.php
Expand Up @@ -177,12 +177,12 @@ public function testSimpleOneClassWithTrait(): void
);

static::assertSame(
'array{stdClass: \stdClass, numbers: int|float $lall <foo/>',
null, // 'array{stdClass: \stdClass, numbers: int|float $lall <foo/>',
$phpClasses[Dummy8::class]->methods['foo_broken']->parameters['lall']->phpDocRaw
);

static::assertSame(
'array{stdClass: \stdClass, numbers: int|float <foo/>',
null, // 'array{stdClass: \stdClass, numbers: int|float <foo/>',
$phpClasses[Dummy8::class]->methods['foo_broken']->returnPhpDocRaw
);

Expand All @@ -191,22 +191,19 @@ public function testSimpleOneClassWithTrait(): void
static::assertNull($phpClasses[Dummy8::class]->methods['foo_broken']->parameters['lall']->typeFromPhpDocExtended);

static::assertSame(
'callable(string ): string',
'callable',
$phpClasses[Dummy8::class]->methods['withCallback']->parameters['callback']->typeFromPhpDocExtended
);

// TODO
/*
static::assertSame(
'callable(string ): string',
'callable',
$phpClasses[Dummy8::class]->methods['withCallbackMulti']->parameters['callback2']->typeFromPhpDocExtended
);

static::assertSame(
'string',
$phpClasses[Dummy8::class]->methods['withCallbackMulti']->returnTypeFromPhpDoc
);
*/
}

public function testSimpleOneTrait(): void
Expand Down

0 comments on commit a662568

Please sign in to comment.