|
@@ 35-41 (lines=7) @@
|
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
public function testAutowired() |
| 36 |
|
{ |
| 37 |
|
$definition = $this->containerBuilder->addDefinition('some') |
| 38 |
|
->setClass(stdClass::class); |
| 39 |
|
|
| 40 |
|
$this->assertSame($definition, $this->definitionFinder->getDefinitionByType(stdClass::class)); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
|
| 44 |
|
public function testNonAutowired() |
|
@@ 44-51 (lines=8) @@
|
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
|
| 44 |
|
public function testNonAutowired() |
| 45 |
|
{ |
| 46 |
|
$definition = $this->containerBuilder->addDefinition('some') |
| 47 |
|
->setClass(stdClass::class) |
| 48 |
|
->setAutowired(FALSE); |
| 49 |
|
|
| 50 |
|
$this->assertSame($definition, $this->definitionFinder->getDefinitionByType(stdClass::class)); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
|
| 54 |
|
/** |