/** * @dataProvider getDataForPostObjectTest */ public function testGetPostObjectData(array $options, array $expected) { $postObject = new PostObject($this->client, 'foo', $options); $postObject->prepareData(); $this->assertSame($expected['attributes'], $postObject->getFormAttributes()); $this->assertSame($expected['inputs'], $postObject->getFormInputs()); $this->assertSame($expected['policy'], $postObject->getJsonPolicy()); }