Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle] Add new TemplateResponse class #21765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Disable twig constructor in tests
  • Loading branch information
pierredup committed Mar 10, 2017
commit e2bee38b00e4edcabf2da2ba7c257e5b13697650
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function testTemplateReference()

$event = $this->getEvent($template);

$twig = $this->getMockBuilder('Twig_Environment')->getMock();
$twig = $this->getMockBuilder('Twig_Environment')->disableOriginalConstructor()->getMock();
$twig->expects($this->once())
->method('render')
->willReturn('This is dummy content');
Expand All @@ -43,7 +43,7 @@ public function testTemplateReference()

public function testInvalidResponse()
{
$twig = $this->getMockBuilder('Twig_Environment')->getMock();
$twig = $this->getMockBuilder('Twig_Environment')->disableOriginalConstructor()->getMock();

$template = $this->getMockBuilder(TemplatedResponseInterface::class)->getMock();
$template->expects($this->once())
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.