Skip to content

Commit 8a43848

Browse files
committed
uncomment failing assertTypes
1 parent f6fdc5f commit 8a43848

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

tests/Type/Symfony/data/ExampleAbstractController.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,43 +27,43 @@ public function parameters(ContainerInterface $container, ParameterBagInterface
2727
{
2828
assertType('array|bool|float|int|string|null', $container->getParameter('unknown'));
2929
assertType('mixed', $parameterBag->get('unknown'));
30-
//assertType('array|bool|float|int|string|null', $this->getParameter('unknown'));
30+
assertType('array|bool|float|int|string|null', $this->getParameter('unknown'));
3131
assertType("'abcdef'", $container->getParameter('app.string'));
3232
assertType("'abcdef'", $parameterBag->get('app.string'));
33-
//assertType("'abcdef'", $this->getParameter('app.string'));
33+
assertType("'abcdef'", $this->getParameter('app.string'));
3434
assertType('123', $container->getParameter('app.int'));
3535
assertType('123', $parameterBag->get('app.int'));
36-
//assertType('123', $this->getParameter('app.int'));
36+
assertType('123', $this->getParameter('app.int'));
3737
assertType("'123'", $container->getParameter('app.int_as_string'));
3838
assertType("'123'", $parameterBag->get('app.int_as_string'));
39-
//assertType("'123'", $this->getParameter('app.int_as_string'));
39+
assertType("'123'", $this->getParameter('app.int_as_string'));
4040
assertType('123.45', $container->getParameter('app.float'));
4141
assertType('123.45', $parameterBag->get('app.float'));
42-
//assertType('123.45', $this->getParameter('app.float'));
42+
assertType('123.45', $this->getParameter('app.float'));
4343
assertType("'123.45'", $container->getParameter('app.float_as_string'));
4444
assertType("'123.45'", $parameterBag->get('app.float_as_string'));
45-
//assertType("'123.45'", $this->getParameter('app.float_as_string'));
45+
assertType("'123.45'", $this->getParameter('app.float_as_string'));
4646
assertType('true', $container->getParameter('app.boolean'));
4747
assertType('true', $parameterBag->get('app.boolean'));
48-
//assertType('true', $this->getParameter('app.boolean'));
48+
assertType('true', $this->getParameter('app.boolean'));
4949
assertType("'true'", $container->getParameter('app.boolean_as_string'));
5050
assertType("'true'", $parameterBag->get('app.boolean_as_string'));
51-
//assertType("'true'", $this->getParameter('app.boolean_as_string'));
51+
assertType("'true'", $this->getParameter('app.boolean_as_string'));
5252
assertType("array('en', 'es', 'fr')", $container->getParameter('app.list'));
5353
assertType("array('en', 'es', 'fr')", $parameterBag->get('app.list'));
54-
//assertType("array('en', 'es', 'fr')", $this->getParameter('app.list'));
54+
assertType("array('en', 'es', 'fr')", $this->getParameter('app.list'));
5555
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $container->getParameter('app.list_of_list'));
5656
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $parameterBag->get('app.list_of_list'));
57-
//assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $this->getParameter('app.list_of_list'));
57+
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $this->getParameter('app.list_of_list'));
5858
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $container->getParameter('app.map'));
5959
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $parameterBag->get('app.map'));
60-
//assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $this->getParameter('app.map'));
60+
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $this->getParameter('app.map'));
6161
assertType("'This is a Bell char '", $container->getParameter('app.binary'));
6262
assertType("'This is a Bell char '", $parameterBag->get('app.binary'));
63-
//assertType("'This is a Bell char '", $this->getParameter('app.binary'));
63+
assertType("'This is a Bell char '", $this->getParameter('app.binary'));
6464
assertType("'Y-m-d\\\\TH:i:sP'", $container->getParameter('app.constant'));
6565
assertType("'Y-m-d\\\\TH:i:sP'", $parameterBag->get('app.constant'));
66-
//assertType("'Y-m-d\\\\TH:i:sP'", $this->getParameter('app.constant'));
66+
assertType("'Y-m-d\\\\TH:i:sP'", $this->getParameter('app.constant'));
6767

6868
assertType('false', $container->hasParameter('unknown'));
6969
assertType('false', $parameterBag->has('unknown'));

tests/Type/Symfony/data/ExampleController.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,43 +27,43 @@ public function parameters(ContainerInterface $container, ParameterBagInterface
2727
{
2828
assertType('array|bool|float|int|string|null', $container->getParameter('unknown'));
2929
assertType('array|bool|float|int|string|null', $parameterBag->get('unknown'));
30-
//assertType('array|bool|float|int|string|null', $this->getParameter('unknown'));
30+
assertType('array|bool|float|int|string|null', $this->getParameter('unknown'));
3131
assertType("'abcdef'", $container->getParameter('app.string'));
3232
assertType("'abcdef'", $parameterBag->get('app.string'));
33-
//assertType("'abcdef'", $this->getParameter('app.string'));
33+
assertType("'abcdef'", $this->getParameter('app.string'));
3434
assertType('123', $container->getParameter('app.int'));
3535
assertType('123', $parameterBag->get('app.int'));
36-
//assertType('123', $this->getParameter('app.int'));
36+
assertType('123', $this->getParameter('app.int'));
3737
assertType("'123'", $container->getParameter('app.int_as_string'));
3838
assertType("'123'", $parameterBag->get('app.int_as_string'));
39-
//assertType("'123'", $this->getParameter('app.int_as_string'));
39+
assertType("'123'", $this->getParameter('app.int_as_string'));
4040
assertType('123.45', $container->getParameter('app.float'));
4141
assertType('123.45', $parameterBag->get('app.float'));
42-
//assertType('123.45', $this->getParameter('app.float'));
42+
assertType('123.45', $this->getParameter('app.float'));
4343
assertType("'123.45'", $container->getParameter('app.float_as_string'));
4444
assertType("'123.45'", $parameterBag->get('app.float_as_string'));
45-
//assertType("'123.45'", $this->getParameter('app.float_as_string'));
45+
assertType("'123.45'", $this->getParameter('app.float_as_string'));
4646
assertType('true', $container->getParameter('app.boolean'));
4747
assertType('true', $parameterBag->get('app.boolean'));
48-
//assertType('true', $this->getParameter('app.boolean'));
48+
assertType('true', $this->getParameter('app.boolean'));
4949
assertType("'true'", $container->getParameter('app.boolean_as_string'));
5050
assertType("'true'", $parameterBag->get('app.boolean_as_string'));
51-
//assertType("'true'", $this->getParameter('app.boolean_as_string'));
51+
assertType("'true'", $this->getParameter('app.boolean_as_string'));
5252
assertType("array('en', 'es', 'fr')", $container->getParameter('app.list'));
5353
assertType("array('en', 'es', 'fr')", $parameterBag->get('app.list'));
54-
//assertType("array('en', 'es', 'fr')", $this->getParameter('app.list'));
54+
assertType("array('en', 'es', 'fr')", $this->getParameter('app.list'));
5555
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $container->getParameter('app.list_of_list'));
5656
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $parameterBag->get('app.list_of_list'));
57-
//assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $this->getParameter('app.list_of_list'));
57+
assertType("array(array('name' => 'the name', 'value' => 'the value'), array('name' => 'another name', 'value' => 'another value'))", $this->getParameter('app.list_of_list'));
5858
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $container->getParameter('app.map'));
5959
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $parameterBag->get('app.map'));
60-
//assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $this->getParameter('app.map'));
60+
assertType("array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c')", $this->getParameter('app.map'));
6161
assertType("'This is a Bell char '", $container->getParameter('app.binary'));
6262
assertType("'This is a Bell char '", $parameterBag->get('app.binary'));
63-
//assertType("'This is a Bell char '", $this->getParameter('app.binary'));
63+
assertType("'This is a Bell char '", $this->getParameter('app.binary'));
6464
assertType("'Y-m-d\\\\TH:i:sP'", $container->getParameter('app.constant'));
6565
assertType("'Y-m-d\\\\TH:i:sP'", $parameterBag->get('app.constant'));
66-
//assertType("'Y-m-d\\\\TH:i:sP'", $this->getParameter('app.constant'));
66+
assertType("'Y-m-d\\\\TH:i:sP'", $this->getParameter('app.constant'));
6767

6868
assertType('false', $container->hasParameter('unknown'));
6969
assertType('false', $parameterBag->has('unknown'));

0 commit comments

Comments
 (0)