Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  add test using deprecated reflection doc block feature to legacy group
  [HttpClient] Test with guzzle promises v2
  • Loading branch information
xabbuh committed Mar 21, 2024
2 parents 13b6dc4 + f3e4b84 commit 5f24cd8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Tests/Extractor/PhpDocExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public static function invalidTypesProvider()
return [
'pub' => ['pub', null, null],
'stat' => ['stat', null, null],
'foo' => ['foo', 'Foo.', null],
'bar' => ['bar', 'Bar.', null],
];
}
Expand All @@ -68,6 +67,16 @@ public function testInvalid($property, $shortDescription, $longDescription)
$this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', $property));
}

/**
* @group legacy
*/
public function testEmptyParamAnnotation()
{
$this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
$this->assertSame('Foo.', $this->extractor->getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
$this->assertNull($this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
}

/**
* @dataProvider typesWithNoPrefixesProvider
*/
Expand Down

0 comments on commit 5f24cd8

Please sign in to comment.