-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Fix functional tests after phpstan fix
Phpstan made aware, that there were some weak spots in the functional testings and fixtures. After these were solved the tests needed to get green again.
- Loading branch information
Showing
6 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ted/Evoweb_Extender_Tests_Functional_Composer_ClassComposerTest-composeMergedFileCode.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"\n\/*\n * This file is composed by \"extender\"\n * Merged class with parts of files:\n * - base.php\n *\/\n\nnamespace Fixture\\BaseExtension\\Domain\\Model;\n\nuse Evoweb\\Domain\\Model\\Test;\nclass ComposeMergedFileCode\n{\n use Evoweb\\TestTrait;\n protected $testProperty;\n public function __construct()\n {\n }\n function getTestProperty()\n {\n }\n}" | ||
"\n\/*\n * This file is composed by \"extender\"\n * Merged class with parts of files:\n * - base.php\n *\/\n\nnamespace EvowebTests\\BaseExtension\\Domain\\Model;\n\nuse Evoweb\\Domain\\Model\\Test;\nclass ComposeMergedFileCode\n{\n use Evoweb\\TestTrait;\n protected $testProperty;\n public function __construct()\n {\n }\n function getTestProperty()\n {\n }\n}" |
2 changes: 1 addition & 1 deletion
2
...s/Expected/Evoweb_Extender_Tests_Functional_Parser_ClassParserTest-getFileSegments802.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"filePath":"\/base_extension\/Classes\/Domain\/Model\/GetFileSegments.php","baseClass":false,"code":"<?php\n\n\/*\n * This file is developed by evoWeb.\n *\n * It is free software; you can redistribute it and\/or modify it under\n * the terms of the GNU General Public License, either version 2\n * of the License, or any later version.\n *\n * For the full copyright and license information, please read the\n * LICENSE.txt file that was distributed with this source code.\n *\/\n\nnamespace Fixture\\BaseExtension\\Domain\\Model;\n\nclass GetFileSegments\n{\n use Fixture\\BaseExtension\\TestTrait;\n\n protected string $testProperty = '';\n\n public function __construct() {}\n\n public function getTestProperty(): string\n {\n return $this->testProperty;\n }\n}\n","statements":[{"nodeType":"Stmt_Namespace","attributes":[],"name":{"nodeType":"Name","attributes":[],"name":"Fixture\\BaseExtension\\Domain\\Model"},"stmts":[]},{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null},{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]},{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}],"namespace":{"nodeType":"Name","attributes":[],"name":"Fixture\\BaseExtension\\Domain\\Model"},"uses":[{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null}],"class":{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},"traits":[{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]}],"properties":[{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]}],"constructor":{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},"methods":[{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}]} | ||
{"filePath":"\/base_extension\/Classes\/Domain\/Model\/GetFileSegments.php","baseClass":false,"code":"<?php\n\n\/*\n * This file is developed by evoWeb.\n *\n * It is free software; you can redistribute it and\/or modify it under\n * the terms of the GNU General Public License, either version 2\n * of the License, or any later version.\n *\n * For the full copyright and license information, please read the\n * LICENSE.txt file that was distributed with this source code.\n *\/\n\nnamespace EvowebTests\\BaseExtension\\Domain\\Model;\n\nclass GetFileSegments\n{\n use \\EvowebTests\\BaseExtension\\Traits\\TestTrait;\n\n protected string $testProperty = '';\n\n public function __construct() {}\n\n public function getTestProperty(): string\n {\n return $this->testProperty;\n }\n}\n","statements":[{"nodeType":"Stmt_Namespace","attributes":[],"name":{"nodeType":"Name","attributes":[],"name":"EvowebTests\\BaseExtension\\Domain\\Model"},"stmts":[]},{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null},{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]},{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}],"namespace":{"nodeType":"Name","attributes":[],"name":"EvowebTests\\BaseExtension\\Domain\\Model"},"uses":[{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null}],"class":{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},"traits":[{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]}],"properties":[{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]}],"constructor":{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},"methods":[{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}]} |
2 changes: 1 addition & 1 deletion
2
...s/Expected/Evoweb_Extender_Tests_Functional_Parser_ClassParserTest-getFileSegments803.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"filePath":"\/base_extension\/Classes\/Domain\/Model\/GetFileSegments.php","baseClass":false,"code":"<?php\n\n\/*\n * This file is developed by evoWeb.\n *\n * It is free software; you can redistribute it and\/or modify it under\n * the terms of the GNU General Public License, either version 2\n * of the License, or any later version.\n *\n * For the full copyright and license information, please read the\n * LICENSE.txt file that was distributed with this source code.\n *\/\n\nnamespace Fixture\\BaseExtension\\Domain\\Model;\n\nclass GetFileSegments\n{\n use Fixture\\BaseExtension\\TestTrait;\n\n protected string $testProperty = '';\n\n public function __construct() {}\n\n public function getTestProperty(): string\n {\n return $this->testProperty;\n }\n}\n","statements":[{"nodeType":"Stmt_Namespace","attributes":[],"name":{"nodeType":"Name","attributes":[],"name":"Fixture\\BaseExtension\\Domain\\Model"},"stmts":[]},{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null},{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]},{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}],"namespace":{"nodeType":"Name","attributes":[],"name":"Fixture\\BaseExtension\\Domain\\Model"},"uses":[{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null}],"class":{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},"traits":[{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]}],"properties":[{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]}],"constructor":{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},"methods":[{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}]} | ||
{"filePath":"\/base_extension\/Classes\/Domain\/Model\/GetFileSegments.php","baseClass":false,"code":"<?php\n\n\/*\n * This file is developed by evoWeb.\n *\n * It is free software; you can redistribute it and\/or modify it under\n * the terms of the GNU General Public License, either version 2\n * of the License, or any later version.\n *\n * For the full copyright and license information, please read the\n * LICENSE.txt file that was distributed with this source code.\n *\/\n\nnamespace EvowebTests\\BaseExtension\\Domain\\Model;\n\nclass GetFileSegments\n{\n use \\EvowebTests\\BaseExtension\\Traits\\TestTrait;\n\n protected string $testProperty = '';\n\n public function __construct() {}\n\n public function getTestProperty(): string\n {\n return $this->testProperty;\n }\n}\n","statements":[{"nodeType":"Stmt_Namespace","attributes":[],"name":{"nodeType":"Name","attributes":[],"name":"EvowebTests\\BaseExtension\\Domain\\Model"},"stmts":[]},{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null},{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]},{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}],"namespace":{"nodeType":"Name","attributes":[],"name":"EvowebTests\\BaseExtension\\Domain\\Model"},"uses":[{"nodeType":"UseItem","attributes":[],"type":0,"name":{"nodeType":"Name","attributes":[],"name":"Evoweb\\Domain\\Model\\Test"},"alias":null}],"class":{"nodeType":"Stmt_Class","attributes":[],"name":{"nodeType":"Identifier","attributes":[],"name":"GetFileSegments"},"stmts":[],"attrGroups":[],"flags":0,"extends":null,"implements":[]},"traits":[{"nodeType":"Stmt_TraitUse","attributes":[],"traits":[{"nodeType":"Name","attributes":[],"name":"Evoweb\\TestTrait"}],"adaptations":[]}],"properties":[{"nodeType":"Stmt_Property","attributes":[],"flags":2,"props":[{"nodeType":"PropertyItem","attributes":[],"name":{"nodeType":"VarLikeIdentifier","attributes":[],"name":"testProperty"},"default":null}],"type":null,"attrGroups":[],"hooks":[]}],"constructor":{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"__construct"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]},"methods":[{"nodeType":"Stmt_ClassMethod","attributes":[],"flags":0,"byRef":false,"name":{"nodeType":"Identifier","attributes":[],"name":"getTestProperty"},"params":[],"returnType":null,"stmts":[],"attrGroups":[]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters