@@ -60,7 +60,7 @@ public function testNormalize()
60
60
$ resourceNameCollectionFactoryProphecy ->create ()->shouldBeCalled ()->willReturn (new ResourceNameCollection ([Dummy::class, 'Zorro ' ]));
61
61
$ defaultContext = ['base_url ' => '/app_dev.php/ ' ];
62
62
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
63
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument::any ())->shouldBeCalled ()->willReturn (new PropertyNameCollection (['id ' , 'name ' , 'description ' , 'dummyDate ' ]));
63
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument::any ())->shouldBeCalled ()->willReturn (new PropertyNameCollection (['id ' , 'name ' , 'description ' , 'dummyDate ' , ' paths ' ]));
64
64
$ propertyNameCollectionFactoryProphecy ->create ('Zorro ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyNameCollection (['id ' ]));
65
65
66
66
$ dummyMetadata = new ResourceMetadata (
@@ -104,6 +104,8 @@ public function testNormalize()
104
104
$ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyMetadata (new Type (Type::BUILTIN_TYPE_STRING ), 'This is a name. ' , true , true , true , true , false , false , null , null , [], null , null , null , null , ['minLength ' => 3 , 'maxLength ' => 20 , 'pattern ' => '^dummyPattern$ ' ]));
105
105
$ propertyMetadataFactoryProphecy ->create (Dummy::class, 'description ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyMetadata (new Type (Type::BUILTIN_TYPE_STRING ), 'This is an initializable but not writable property. ' , true , false , true , true , false , false , null , null , [], null , true ));
106
106
$ propertyMetadataFactoryProphecy ->create (Dummy::class, 'dummyDate ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyMetadata (new Type (Type::BUILTIN_TYPE_OBJECT , true , \DateTime::class), 'This is a \DateTimeInterface object. ' , true , true , true , true , false , false , null , null , []));
107
+ // Check reserved word "paths": when normalize->recursiveClean in OpenApi Component Schema.
108
+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'paths ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyMetadata (new Type (Type::BUILTIN_TYPE_ARRAY ), 'This is a array. ' , true , true , true , true , false , false , null , null , []));
107
109
108
110
$ propertyMetadataFactoryProphecy ->create ('Zorro ' , 'id ' , Argument::any ())->shouldBeCalled ()->willReturn (new PropertyMetadata (new Type (Type::BUILTIN_TYPE_INT ), 'This is an id. ' , true , false , null , null , null , true ));
109
111
0 commit comments