8000 Merge branch '3.2' · sstok/symfony@549af73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 549af73

Browse files
Merge branch '3.2'
* 3.2: [HttpFoundation] Fix transient tests [DI] Fix second auto-registration
2 parents 3f07e10 + db31e80 commit 549af73

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ public function testCreateDefinition()
242242
$pass = new AutowirePass();
243243
$pass->process($container);
244244

245-
$this->assertCount(1, $container->getDefinition('coop_tilleuls')->getArguments());
245+
$this->assertCount(2, $container->getDefinition('coop_tilleuls')->getArguments());
246246
$this->assertEquals('autowired.Symfony\Component\DependencyInjection\Tests\Compiler\Dunglas', $container->getDefinition('coop_tilleuls')->getArgument(0));
247+
$this->assertEquals('autowired.Symfony\Component\DependencyInjection\Tests\Compiler\Dunglas', $container->getDefinition('coop_tilleuls')->getArgument(1));
247248

248249
$dunglasDefinition = $container->getDefinition('autowired.Symfony\Component\DependencyInjection\Tests\Compiler\Dunglas');
249250
$this->assertEquals(__NAMESPACE__.'\Dunglas', $dunglasDefinition->getClass());
@@ -833,7 +834,7 @@ public function __construct(Lille $l)
833834

834835
class LesTilleuls
835836
{
836-
public function __construct(Dunglas $k)
837+
public function __construct(Dunglas $j, Dunglas $k)
837838
{
838839
}
839840
}

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function __construct($content = '', $status = 200, $headers = array())
204204

205205
/* RFC2616 - 14.18 says all Responses need to have a Date */
206206
if (!$this->headers->has('Date')) {
207-
$this->setDate(new \DateTime(null, new \DateTimeZone('UTC')));
207+
$this->setDate(\DateTime::createFromFormat('U', time()));
208208
}
209209
}
210210

0 commit comments

Comments
 (0)
0