Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/
Upload File :
Current File : //home/rtorresani/www/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/FinallyTest.inc

<?php

try {
    // Do something.
} catch(Exception $e) {
    // Do something.
}
/* testTryCatchFinally */
finally {
    // Do something.
}

/* testTryFinallyCatch */
try {
    // Do something.
} finally {
    // Do something.
} catch(Exception $e) {
    // Do something.
}

/* testTryFinally */
try {
    // Do something.
} FINALLY {
    // Do something.
}

class FinallyAsMethod {
    /* testFinallyUsedAsClassConstantName */
    const FINALLY = 'foo';

    /* testFinallyUsedAsMethodName */
    public function finally() {
        // Do something.

        /* testFinallyUsedAsPropertyName */
        $this->finally = 'foo';
    }
}