Annotation of embedaddon/php/ext/tidy/tests/034.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: tidy_access_count() function - basic test for tidy_access_count()
        !             3: --CREDITS--
        !             4: Christian Wenz <wenz@php.net>
        !             5: --SKIPIF--
        !             6: <?php
        !             7:   if (!extension_loaded('tidy')) die ('skip tidy not present');
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: $buffer = '<img src="file.png" /><php>';
        !            12: $config = array(
        !            13:   'accessibility-check' => 1);
        !            14: 
        !            15: $tidy = tidy_parse_string($buffer, $config);
        !            16: $tidy->diagnose();
        !            17: var_dump(tidy_access_count($tidy));
        !            18: ?>
        !            19: --EXPECTF--
        !            20: int(%d)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>