src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        foreach ($this->getPreviousAssertCall($tokens) as $assertCall) {
            // test and fix for assertTrue/False to dedicated asserts
            if ('asserttrue' === $assertCall['loweredName'] || 'assertfalse' === $assertCall['loweredName']) {
                $this->fixAssertTrueFalse($tokens, $assertCall);

                continue;
            }

            if (
                'assertsame' === $assertCall['loweredName']
                || 'assertnotsame' === $assertCall['loweredName']
                || 'assertequals' === $assertCall['loweredName']
                || 'assertnotequals' === $assertCall['loweredName']
            ) {
                $this->fixAssertSameEquals($tokens, $assertCall);

                continue;
            }
        }
    }
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        foreach ($this->getPreviousAssertCall($tokens) as $assertCall) {
            // test and fix for assertTrue/False to dedicated asserts
            if ('asserttrue' === $assertCall['loweredName'] || 'assertfalse' === $assertCall['loweredName']) {
                $this->fixAssertTrueFalse($tokens, $assertCall);

                continue;
            }

            if (
                'assertsame' === $assertCall['loweredName']
                || 'assertnotsame' === $assertCall['loweredName']
                || 'assertequals' === $assertCall['loweredName']
                || 'assertnotequals' === $assertCall['loweredName']
            ) {
                $this->fixAssertSameEquals($tokens, $assertCall);

                continue;
            }
        }
    }
protected function applyFix ( \ SplFileInfo $ file , Tokens $ tokens ) { foreach ( $ this -> getPreviousAssertCall ( $ tokens ) as $ assertCall ) { // test and fix for assertTrue/False to dedicated asserts if ( 'asserttrue' === $ assertCall [ 'loweredName' ] || 'assertfalse' === $ assertCall [ 'loweredName' ] ) { $ this -> fixAssertTrueFalse ( $ tokens , $ assertCall ) ; continue ; } if ( 'assertsame' === $ assertCall [ 'loweredName' ] || 'assertnotsame' === $ assertCall [ 'loweredName' ] || 'assertequals' === $ assertCall [ 'loweredName' ] || 'assertnotequals' === $ assertCall [ 'loweredName' ] ) { $ this -> fixAssertSameEquals ( $ tokens , $ assertCall ) ; continue ; } } }
{@inheritdoc}
{