File "FinallyTest.inc"
Full Path: /home/warrior1/public_html/themes/storefront/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/FinallyTest.inc
File size: 636 bytes
MIME-type: text/x-php
Charset: utf-8
<?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';
}
}