Exakat\Analyzer\Structures\Htmlentitiescall::analyze PHP Method

analyze() public method

public analyze ( )
    public function analyze()
    {
        // Case with no 2nd argument (using default)
        $this->atomIs('Functioncall')->functioncallIs(array('\\htmlentities', '\\htmlspecialchars'))->outIs('ARGUMENTS')->noChildWithRank('ARGUMENT', 1)->back('first');
        $this->prepareQuery();
        // Case with no 3rd argument (using default)
        $this->atomFunctionIs(array('\\htmlentities', '\\htmlspecialchars'))->outIs('ARGUMENTS')->noChildWithRank('ARGUMENT', 2)->back('first');
        $this->prepareQuery();
        // Case 2nd argument is a constant
        $this->atomFunctionIs(array('\\htmlentities', '\\htmlspecialchars'))->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 1)->atomIs(array('Identifier', 'Nsname'))->outIsIE('SUBNAME')->codeIsNot(array('ENT_COMPAT', 'ENT_QUOTES', 'ENT_NOQUOTES', 'ENT_IGNORE', 'ENT_SUBSTITUTE', 'ENT_DISALLOWED', 'ENT_HTML401', 'ENT_XML1', 'ENT_XHTML', 'ENT_HTML5'), true)->back('first');
        $this->prepareQuery();
        // Case 2nd argument is a combinaison
        $this->atomFunctionIs(array('\\htmlentities', '\\htmlspecialchars'))->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 1)->atomIs('Logical')->atomInside(array('Identifier', 'Nsname'))->outIsIE('SUBNAME')->codeIsNot(array('ENT_COMPAT', 'ENT_QUOTES', 'ENT_NOQUOTES', 'ENT_IGNORE', 'ENT_SUBSTITUTE', 'ENT_DISALLOWED', 'ENT_HTML401', 'ENT_XML1', 'ENT_XHTML', 'ENT_HTML5'), true)->back('first');
        $this->prepareQuery();
        // Case 3rd argument is one of the following value
        $this->atomFunctionIs(array('\\htmlentities', '\\htmlspecialchars'))->outIs('ARGUMENTS')->outWithRank('ARGUMENT', 2)->atomIs('String')->noDelimiterIsNot(array('ISO-8859-1', 'ISO8859-1', 'ISO-8859-5', 'ISO8859-5', 'ISO-8859-15', 'ISO8859-15', 'UTF-8', 'cp866', 'ibm866', '866', 'cp1251', 'Windows-1251', 'win-1251', '1251', 'cp1252', 'Windows-1252', '1252', 'KOI8-R', 'koi8-ru', 'koi8r', 'BIG5', '950', 'GB2312', '936', 'BIG5-HKSCS', 'Shift_JIS', 'SJIS', 'SJIS-win', 'cp932', '932', 'EUC-JP', 'EUCJP', 'eucJP-win', 'MacRoman', ''), true)->back('first');
        $this->prepareQuery();
    }
Htmlentitiescall