46 lines
1.8 KiB
YAML
46 lines
1.8 KiB
YAML
|
name: CheckArgumentsValidityPassTest
|
||
|
class_comment: "# * @author K\xE9vin Dunglas <dunglas@gmail.com>"
|
||
|
dependencies:
|
||
|
- name: TestCase
|
||
|
type: class
|
||
|
source: PHPUnit\Framework\TestCase
|
||
|
- name: CheckArgumentsValidityPass
|
||
|
type: class
|
||
|
source: Symfony\Component\DependencyInjection\Compiler\CheckArgumentsValidityPass
|
||
|
- name: ContainerBuilder
|
||
|
type: class
|
||
|
source: Symfony\Component\DependencyInjection\ContainerBuilder
|
||
|
- name: RuntimeException
|
||
|
type: class
|
||
|
source: Symfony\Component\DependencyInjection\Exception\RuntimeException
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: testException
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: arguments
|
||
|
- name: methodCalls
|
||
|
comment: "# * @author K\xE9vin Dunglas <dunglas@gmail.com>\n# */\n# class CheckArgumentsValidityPassTest\
|
||
|
\ extends TestCase\n# {\n# public function testProcess()\n# {\n# $container =\
|
||
|
\ new ContainerBuilder();\n# $definition = $container->register('foo');\n# $definition->setArguments([null,\
|
||
|
\ 1, 'a']);\n# $definition->setMethodCalls([\n# ['bar', ['a', 'b']],\n# ['baz',\
|
||
|
\ ['c', 'd']],\n# ]);\n# \n# $pass = new CheckArgumentsValidityPass();\n# $pass->process($container);\n\
|
||
|
# \n# $this->assertEquals([null, 1, 'a'], $container->getDefinition('foo')->getArguments());\n\
|
||
|
# $this->assertEquals([\n# ['bar', ['a', 'b']],\n# ['baz', ['c', 'd']],\n# ],\
|
||
|
\ $container->getDefinition('foo')->getMethodCalls());\n# }\n# \n# /**\n# * @dataProvider\
|
||
|
\ definitionProvider"
|
||
|
- name: definitionProvider
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: testNoException
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
traits:
|
||
|
- PHPUnit\Framework\TestCase
|
||
|
- Symfony\Component\DependencyInjection\Compiler\CheckArgumentsValidityPass
|
||
|
- Symfony\Component\DependencyInjection\ContainerBuilder
|
||
|
- Symfony\Component\DependencyInjection\Exception\RuntimeException
|
||
|
interfaces: []
|