diff options
author | Christian Schneider | 2019-09-02 17:14:43 +0200 |
---|---|---|
committer | Christian Schneider | 2019-09-02 17:14:43 +0200 |
commit | 2b13737e9299317c865f72f4a276ea0b733c4f5f (patch) | |
tree | b800cc0e889d976ba0957e168df45622aee24ee2 /test/it_html.t | |
parent | b422951038a66713c18ec4d24ce71a13dd0756a6 (diff) | |
download | itools-2b13737e9299317c865f72f4a276ea0b733c4f5f.tar.gz itools-2b13737e9299317c865f72f4a276ea0b733c4f5f.tar.bz2 itools-2b13737e9299317c865f72f4a276ea0b733c4f5f.zip |
Make itools a bit stricter, new PHP versions start to enforce more declarations
Diffstat (limited to 'test/it_html.t')
-rwxr-xr-x | test/it_html.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/it_html.t b/test/it_html.t index 5e19b74..f5daebd 100755 --- a/test/it_html.t +++ b/test/it_html.t @@ -175,7 +175,7 @@ is( class myhtml extends it_html { -function myhtml($p = array()) +function __construct($p = array()) { parent::__construct($p + ['moretags' => 'overriddentag,defaulttag', 'nonewlinetags' => 'a,b,defaulttag,em,img,input,overriddentag,span,div']); } @@ -253,7 +253,7 @@ is( 'empty tags removal' ); -foreach (json_decode(file_get_contents(dirname($argv[0]) . '/U_tests.json'), true) as $test) { +foreach (json_decode(it::file_get_contents(dirname($argv[0]) . '/U_tests.json'), true) as $test) { is(U(...$test['args']), $test['exp'], $test['name']); } |