You forgot a `"`:

```
2) Carew\Tests\Event\Listener\Body\TocTest::testOnDocumentDoesNotAlterLink
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-<a href="{{ path(\'foobar\') }}">foobar</a>
+<a href={{ path(\'foobar\') }}">foobar</a>
 AAAAA
-<a href="{{ path(\'baba\') }}">baba</a>
+<a href={{ path(\'baba\') }}">baba</a>
 BBBBB
-<a href="{{ path(\'bar\') }}">bar</a>
+<a href={{ path(\'bar\') }}">bar</a>
 CCCCC
-<a href="{{ path(\'foobar\') }}">foobar</a>
+<a href={{ path(\'foobar\') }}">foobar</a>

/home/greg/dev/perso/carew/Carew/Tests/Event/Listener/Body/TocTest.php:70
```