Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
'phpdoc_separation' => false,
'single_line_empty_body' => false,
'phpdoc_align' => false,
'php_unit_test_class_requires_covers' => false,
))
->setFinder($finder);
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@
"email": "thomasbreuss@gmx.ch",
"role": "Contributor"
},
{
"name": "Alex Krátký",
"role": "Contributor"
},
{
"name": "Michel Tomas",
"email": "michel.p.tomas@gmail.com",
"role": "Contributor"
},
{
"name": "Kai Dederichs",
"role": "Contributor"
}
{
"name": "Alex Krátký",
"role": "Contributor"
},
{
"name": "Michel Tomas",
"email": "michel.p.tomas@gmail.com",
"role": "Contributor"
},
{
"name": "Kai Dederichs",
"role": "Contributor"
}
],
"support" : {
"email" : "contact@wsdltophp.com"
Expand Down
3 changes: 2 additions & 1 deletion src/File/Validation/ChoiceRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use WsdlToPhp\PackageGenerator\File\AbstractModelFile;
use WsdlToPhp\PackageGenerator\File\Element\PhpFunctionParameter;
use WsdlToPhp\PackageGenerator\Model\StructAttribute;
use WsdlToPhp\PhpGenerator\Element\AssignedValueElementInterface;
use WsdlToPhp\PhpGenerator\Element\PhpMethod;

final class ChoiceRule extends AbstractRule
Expand Down Expand Up @@ -51,7 +52,7 @@ protected function addValidationMethod(string $parameterName, array $choiceNames
}

$method = new PhpMethod($this->getValidationMethodName($parameterName), [
new PhpFunctionParameter('value', PhpFunctionParameter::NO_VALUE),
new PhpFunctionParameter('value', AssignedValueElementInterface::NO_VALUE),
], AbstractModelFile::TYPE_STRING);

$method
Expand Down
4 changes: 2 additions & 2 deletions src/Parser/Wsdl/TagChoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use WsdlToPhp\PackageGenerator\Model\Struct;
use WsdlToPhp\PackageGenerator\Model\StructAttribute;
use WsdlToPhp\PackageGenerator\Model\Wsdl;
use WsdlToPhp\WsdlHandler\AbstractDocument;
use WsdlToPhp\WsdlHandler\Tag\AbstractTag;
use WsdlToPhp\WsdlHandler\Tag\TagChoice as Choice;
use WsdlToPhp\WsdlHandler\Wsdl as WsdlDocument;

final class TagChoice extends AbstractTagParser
{
Expand Down Expand Up @@ -42,7 +42,7 @@ protected function parseWsdl(Wsdl $wsdl): void

protected function parsingTag(): string
{
return WsdlDocument::TAG_CHOICE;
return AbstractDocument::TAG_CHOICE;
}

protected function parseChoiceChild(Choice $choice, array $choiceNames, AbstractTag $child, Struct $struct): void
Expand Down
1 change: 0 additions & 1 deletion tests/Command/GeneratePackageCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class GeneratePackageCommandTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationReader/GeneratorOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class GeneratorOptionsTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationReader/PhpReservedKeywordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class PhpReservedKeywordTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationReader/ServiceReservedMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ServiceReservedMethodTest extends AbstractTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructArrayReservedMethodTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationReader/StructReservedMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructReservedMethodTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/ConfigurationReader/XsdTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class XsdTypesTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/FalseObjectContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class FalseObjectContainerTest extends AbstractObjectContainer
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/FalseObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class FalseObjectTest
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/MethodContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class MethodContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/ModelContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ModelContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/SchemaContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class SchemaContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/ServiceContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ServiceContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/StructAttributeContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructAttributeContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/StructContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/Model/StructValueContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructValueContainerTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/ObjectContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ObjectContainerTest extends AbstractObjectContainer
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ObjectTest
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ParserTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/PhpElement/ConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ConstantTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/PhpElement/MethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class MethodTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Container/PhpElement/PropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class PropertyTest extends AbstractTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/File/ClassMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ClassMapTest extends AbstractFile
{
Expand Down
3 changes: 1 addition & 2 deletions tests/File/ComposerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ComposerTest extends AbstractFile
{
Expand Down Expand Up @@ -79,7 +78,7 @@ public function testBingWithSettingsAdditionalOptions(): void
'require-dev.phpunit/phpunit:^9',
'require-dev.rector/rector:^2',
'config.disable-tls:true',
'config.sort-packages:true'
'config.sort-packages:true',
])
;
$composerFile = new Composer($instance, 'composer');
Expand Down
1 change: 0 additions & 1 deletion tests/File/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class ServiceTest extends AbstractFile
{
Expand Down
1 change: 0 additions & 1 deletion tests/File/StructArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructArrayTest extends AbstractFile
{
Expand Down
1 change: 0 additions & 1 deletion tests/File/StructEnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructEnumTest extends AbstractFile
{
Expand Down
16 changes: 15 additions & 1 deletion tests/File/StructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class StructTest extends AbstractFile
{
Expand Down Expand Up @@ -160,6 +159,21 @@ public function testWriteOdigeoStructFareItinerary(): void
}
}

public function testWriteOdigeoStructSearchStatusResponse(): void
{
$generator = self::odigeoGeneratorInstance();
if (($model = $generator->getStructByName('searchStatusResponse')) instanceof StructModel) {
$struct = new StructFile($generator, $model->getName());
$struct
->setModel($model)
->write()
;
$this->assertSameFileContent('ValidApiSearchStatusResponse', $struct);
} else {
$this->fail('Unable to find fareItinerary struct for file generation');
}
}

public function testWriteBingStructNewsArticle(): void
{
$generator = self::bingGeneratorInstance();
Expand Down
1 change: 0 additions & 1 deletion tests/File/TutorialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

/**
* @internal
* @coversDefaultClass
*/
final class TutorialTest extends AbstractFile
{
Expand Down
Loading
Loading