File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
],
11
11
"require" : {
12
12
"php" : " >=5.3.0" ,
13
- "twig/twig" :" ~1.5|~2 .0" ,
13
+ "twig/twig" :" ~3 .0" ,
14
14
"behat/behat" : " ~3.0" ,
15
15
"behat/gherkin" : " ~4.2"
16
16
},
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function copyResultingTemplateToProjectRoot()
74
74
public function prepareTestFolders ()
75
75
{
76
76
$ dir = sys_get_temp_dir () . DIRECTORY_SEPARATOR . 'behat ' . DIRECTORY_SEPARATOR .
77
- md5 (microtime () * rand (0 , 10000 ));
77
+ md5 (microtime (TRUE ) * rand (0 , 10000 ));
78
78
79
79
mkdir ($ dir . '/features/bootstrap/i18n ' , 0777 , true );
80
80
mkdir ($ dir . '/junit ' );
Original file line number Diff line number Diff line change 3
3
namespace emuse \BehatHTMLFormatter \Renderer ;
4
4
5
5
use emuse \BehatHTMLFormatter \Formatter \BehatHTMLFormatter ;
6
- use Twig_Environment ;
7
- use Twig_Loader_Filesystem ;
6
+ use Twig \ Environment ;
7
+ use \ Twig \ Loader \ FilesystemLoader ;
8
8
9
9
/**
10
10
* Twig renderer for Behat report.
@@ -35,8 +35,8 @@ public function renderBeforeExercise(BehatHTMLFormatter $obj)
35
35
public function renderAfterExercise (BehatHTMLFormatter $ obj )
36
36
{
37
37
$ templatePath = dirname (__FILE__ ).'/../../templates ' ;
38
- $ loader = new Twig_Loader_Filesystem ($ templatePath );
39
- $ twig = new Twig_Environment ($ loader , array ());
38
+ $ loader = new FilesystemLoader ($ templatePath );
39
+ $ twig = new Environment ($ loader , array ());
40
40
$ print = $ twig ->render ('index.html.twig ' ,
41
41
array (
42
42
'suites ' => $ obj ->getSuites (),
You can’t perform that action at this time.
0 commit comments