PHP Classes
elePHPant
Icontem

File: phpcf-src/test/original/finally.php

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/original/finally.php  >  Download  
File: phpcf-src/test/original/finally.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 5 years ago
Size: 223 bytes
 

 

Contents

Class file image Download
<?php

/**
 * check for finally keyword correct format
 */
try {
    throw new
InvalidArgumentException( "Catch me, if you can" );
}
catch(
InvalidArgumentException $e) {
    echo
"got you!";
}
finally
{
    echo
"OLOLO";
}