Example #1
0
 /**
  * @covers \Weasel\JsonMarshaller\Config\Annotations\JsonSubTypes\Type
  */
 public function testParseClassAnnotations()
 {
     $annotationReader = new \Weasel\Annotation\AnnotationReader(new \ReflectionClass('\\Weasel\\JsonMarshaller\\Config\\Annotations\\JsonSubTypes\\Type'), new \Weasel\Annotation\AnnotationConfigurator());
     $expected = array('\\Weasel\\Annotation\\Config\\Annotations\\Annotation' => array(new \Weasel\Annotation\Config\Annotations\Annotation(array('\\Weasel\\JsonMarshaller\\Config\\Annotations\\JsonSubTypes'), null)));
     $this->assertEquals($expected, $annotationReader->getClassAnnotations());
 }
Example #2
0
 /**
  * @covers \Weasel\JsonMarshaller\Config\Annotations\JsonInclude
  */
 public function testParseClassAnnotations()
 {
     $annotationReader = new \Weasel\Annotation\AnnotationReader(new \ReflectionClass('\\Weasel\\JsonMarshaller\\Config\\Annotations\\JsonInclude'), new \Weasel\Annotation\AnnotationConfigurator());
     $expected = array('\\Weasel\\Annotation\\Config\\Annotations\\Annotation' => array(new \Weasel\Annotation\Config\Annotations\Annotation(array("class", "method", "property"), 1)));
     $this->assertEquals($expected, $annotationReader->getClassAnnotations());
 }