Skip to content

Commit

Permalink
Symfony fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorpie committed Jun 28, 2022
1 parent 962c1a2 commit fc1ed24
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 88 deletions.
8 changes: 3 additions & 5 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('test_api_rest');
$treeBuilder = new TreeBuilder('test_api_rest');
$rootNode = $treeBuilder->getRootNode();

$rootNode
->children()
Expand All @@ -31,6 +31,4 @@ public function getConfigTreeBuilder()

return $treeBuilder;
}
}

?>
}
4 changes: 2 additions & 2 deletions Tests/TestApiRestBundle/Service/JsonFileComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class JsonFileComparatorTest extends TestCase
protected function buildJsonFileComparator($left, $right, $matcherReturn = true, $sub_right = null)
{
$matcher = $this->getMockBuilder('EveryCheck\TestApiRestBundle\Matcher\Matcher')
->setMethods(['match','getError'])
->addMethods(['match','getError'])
->getMock();

$matcher->method('match')->willReturn($matcherReturn);
$matcher->method('getError')->willReturn('mock error');

$jsonFileComparator = $this->getMockBuilder('EveryCheck\TestApiRestBundle\Service\JsonFileComparator')
->setMethods(['loadJSONFromString','loadJSONFromFile'])
->addMethods(['loadJSONFromString','loadJSONFromFile'])
->setConstructorArgs([$matcher])
->getMock();

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"symfony/monolog-bundle": "^3.1",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/symfony": "4.4.|^5.4",
"symfony/web-server-bundle": "^4.4|^5.4",
"symfony/symfony": "^5.4",
"twig/extensions": "^1.5"
},
"autoload": {
Expand Down
86 changes: 7 additions & 79 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc1ed24

Please # to comment.