Пример #1
0
 /**
  * @param string $doc_comment_string
  *
  * @return PropertyAnnotation|null
  */
 private function getPropertyAnnotation($doc_comment_string)
 {
     try {
         return PropertyAnnotation::fromDocCommentString($doc_comment_string);
     } catch (BadPropertyAnnotationDetected $e) {
         return null;
     }
 }
 /**
  * @dataProvider readableWritableProvider
  */
 public function testIsReadableIsWritable($doc_comment_string, $expected_readable, $expected_writable)
 {
     $annotation = PropertyAnnotation::fromDocCommentString($doc_comment_string);
     $this->assertSame($expected_readable, $annotation->isReadable());
     $this->assertSame($expected_writable, $annotation->isWritable());
 }