Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
lock twig version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidde Boomsma committed Dec 27, 2016
1 parent 4d25476 commit f95269c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**Not maintained, not in use within Hostnet**

form-twig-bridge
----------------

Expand Down
21 changes: 3 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
{
"name": "hostnet/form-twig-bridge",
"description": "Allows usage of the Symfony 3 form framework, rendered in twig, without using all of Symfony 3!",
"type": "library",
"keywords": [
"form",
"twig"
],
"homepage": "https://github.com/hostnet/form-twig-bridge",
"description": "Allows usage of the Symfony 3 form framework, rendered in twig, without using all of Symfony 3!",
"license": "MIT",
"authors": [
{
"name": "Nico Schoenmaker",
"homepage": "http:https://nschoenmaker.nl",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/hostnet/form-twig-bridge/issues",
"source": "https://github.com/hostnet/form-twig-bridge"
},
"require": {
"php": ">=5.6",
"hostnet/path-composer-plugin-lib": "^1.0.0",
Expand All @@ -27,7 +11,8 @@
"symfony/http-foundation": "^3.0.2",
"symfony/translation": "^3.0.2",
"symfony/twig-bridge": "^3.0.2",
"symfony/validator": "^3.0.2"
"symfony/validator": "^3.0.2",
"twig/twig": "<1.28.0"
},
"require-dev": {
"phpunit/phpunit": "^5.1.0",
Expand Down
4 changes: 2 additions & 2 deletions test/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function testCreateTwigEnvironmentBuilder()
$token_manager = $this->prophesize('Symfony\Component\Security\Csrf\CsrfTokenManagerInterface');
$builder
->setCsrfTokenManager($token_manager->reveal())
->setTranslator($this->getMock('Symfony\Component\Translation\TranslatorInterface'));
->setTranslator($this->createMock('Symfony\Component\Translation\TranslatorInterface'));
$this->assertInstanceOf(
'\Hostnet\FormTwigBridge\TwigEnvironmentBuilder',
$builder->createTwigEnvironmentBuilder()
Expand Down Expand Up @@ -103,7 +103,7 @@ public function testBuildFormFactory()
$token_manager = $this->prophesize('Symfony\Component\Security\Csrf\CsrfTokenManagerInterface');
$builder
->setCsrfTokenManager($token_manager->reveal())
->setTranslator($this->getMock('Symfony\Component\Translation\TranslatorInterface'));
->setTranslator($this->createMock('Symfony\Component\Translation\TranslatorInterface'));
$this->assertInstanceOf(
'\Symfony\Component\Form\FormFactoryInterface',
$builder->buildFormFactory()
Expand Down
4 changes: 2 additions & 2 deletions test/TwigEnvironmentBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testSetTranslator()
$builder = new TwigEnvironmentBuilder();
$this->assertEquals(
$builder,
$builder->setTranslator($this->getMock('Symfony\Component\Translation\TranslatorInterface'))
$builder->setTranslator($this->createMock('Symfony\Component\Translation\TranslatorInterface'))
);
}

Expand Down Expand Up @@ -49,7 +49,7 @@ public function testBuild()
$builder = new TwigEnvironmentBuilder();
$token_manager = $this->prophesize('Symfony\Component\Security\Csrf\CsrfTokenManagerInterface');
$builder->setCsrfTokenManager($token_manager->reveal());
$builder->setTranslator($this->getMock('Symfony\Component\Translation\TranslatorInterface'));
$builder->setTranslator($this->createMock('Symfony\Component\Translation\TranslatorInterface'));
$this->assertInstanceOf('Twig_Environment', $builder->build());
}
}

0 comments on commit f95269c

Please sign in to comment.