]> granicus.if.org Git - php/commit
Make the test faster, what was done:
authorShein Alexey <shein@php.net>
Mon, 5 Sep 2011 11:00:14 +0000 (11:00 +0000)
committerShein Alexey <shein@php.net>
Mon, 5 Sep 2011 11:00:14 +0000 (11:00 +0000)
commit5f5b7175eaeef25e784eccdad477fe0af927e385
tree9fb9ef9b11bc8ce2ad86dcede86cf6875085608a
parent6ff887636a8a3bb89818baed8a6906ffdf81fc11
Make the test faster, what was done:
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
ext/standard/tests/strings/htmlentities_html4.phpt