PHPUnit 4.8.27 by Sebastian Bergmann and contributors. ............................................................... 63 / 158 ( 39%) ............................................................... 126 / 158 ( 79%) .............................FFF Time: 1.41 seconds, Memory: 28.00MB There were 3 failures: 1) JMS\TranslationBundle\Tests\Twig\DefaultApplyingNodeVisitorTest::testApply Failed asserting that two objects are equal. --- Expected +++ Actual @@ @@ Twig_Node_Module Object ( 'source' => Twig_Source Object ( - 'code' => '{{ "form.label.firstname"|trans == "form.label.firstname" ? "Firstname" : "form.label.firstname"|trans }} + 'code' => '{{ "form.label.firstname"|trans|desc("Firstname") }} - {{ "foo.%bar%"|trans({}) == "foo.%bar%" ? "Foo %bar%"|replace({"%bar%": "baz"}) : "foo.%bar%"|trans({"%bar%": "baz"}) }} + {{ "foo.%bar%"|trans({"%bar%": "baz"})|desc("Foo %bar%") }} @@ @@ 'attributes' => Array ( - 'source' => '{{ "form.label.firstname"|trans == "form.label.firstname" ? "Firstname" : "form.label.firstname"|trans }} + 'source' => '{{ "form.label.firstname"|trans|desc("Firstname") }} - {{ "foo.%bar%"|trans({}) == "foo.%bar%" ? "Foo %bar%"|replace({"%bar%": "baz"}) : "foo.%bar%"|trans({"%bar%": "baz"}) }} + {{ "foo.%bar%"|trans({"%bar%": "baz"})|desc("Foo %bar%") }} ' 'filename' => null 'index' => null 'embedded_templates' => Array () ) 'lineno' => 1 'tag' => null 'name' => null ) /home/vagrant/projects/JMSTranslationBundle/Tests/Twig/DefaultApplyingNodeVisitorTest.php:27 2) JMS\TranslationBundle\Tests\Twig\NormalizingNodeVisitorTest::testBinaryConcatOfConstants Failed asserting that two objects are equal. --- Expected +++ Actual @@ @@ Twig_Node_Module Object ( 'source' => Twig_Source Object ( - 'code' => '{{ "foobarbaz" }}' + 'code' => '{{ "foo" + ~ "bar" + ~ "baz" }}' 'name' => null 'path' => '' ) 'nodes' => Array (...) 'attributes' => Array ( - 'source' => '{{ "foobarbaz" }}' + 'source' => '{{ "foo" + ~ "bar" + ~ "baz" }}' 'filename' => null 'index' => null 'embedded_templates' => Array () ) 'lineno' => 1 'tag' => null 'name' => null ) /home/vagrant/projects/JMSTranslationBundle/Tests/Twig/NormalizingNodeVisitorTest.php:27 3) JMS\TranslationBundle\Tests\Twig\RemovingNodeVisitorTest::testRemovalWithSimpleTemplate Failed asserting that two objects are equal. --- Expected +++ Actual @@ @@ Twig_Node_Module Object ( 'source' => Twig_Source Object ( - 'code' => '{{ "text.foo"|trans }} + 'code' => '{{ "text.foo"|trans|desc("Foo Bar")|meaning("Some Meaning")}} - {{ "text.bar"|trans }} + {{ "text.bar"|trans|desc("Foo") }} - {{ "text.baz"|trans }} + {{ "text.baz"|trans|meaning("Bar") }} @@ @@ 'attributes' => Array ( - 'source' => '{{ "text.foo"|trans }} + 'source' => '{{ "text.foo"|trans|desc("Foo Bar")|meaning("Some Meaning")}} - {{ "text.bar"|trans }} + {{ "text.bar"|trans|desc("Foo") }} - {{ "text.baz"|trans }} + {{ "text.baz"|trans|meaning("Bar") }} {{ "text.foo_bar"|trans({}, "foo") }} {% trans with {'%name%': 'Johannes'} from "app" %}text.name{% endtrans %} {% transchoice count with {'%name%': 'Johannes'} from "app" %}text.apple_choice{% endtranschoice %} {{ "foo.bar" | trans }} {{ "foo.bar2" | transchoice(5) }} {{ "foo.bar3" | trans({'%name%': 'Johannes'}, "app") }} {{ "foo.bar4" | transchoice(5, {'%name%': 'Johannes'}, 'app') }} {% trans %}text.default_domain{% endtrans %}' 'filename' => null 'index' => null 'embedded_templates' => Array () ) 'lineno' => 1 'tag' => null 'name' => null ) /home/vagrant/projects/JMSTranslationBundle/Tests/Twig/RemovingNodeVisitorTest.php:28 FAILURES! Tests: 158, Assertions: 348, Failures: 3.