Пример #1
0
 public function testReturnNullOnEmptyDocBlock()
 {
     $this->assertNull($this->extractor->getShortDescription(EmptyDocBlock::class, 'foo'));
 }
Пример #2
0
 /**
  * @dataProvider typesProvider
  */
 public function testExtract($property, array $type = null, $shortDescription, $longDescription)
 {
     $this->assertEquals($type, $this->extractor->getTypes('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', $property));
     $this->assertSame($shortDescription, $this->extractor->getShortDescription('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', $property));
     $this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', $property));
 }