PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Francisco Núñez   BEH Basic PHP Error Handler Class   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: BEH Basic PHP Error Handler Class
Handle PHP errors displaying them using templates
Author: By
Last change: Update PSR 1 & 12

Update PSR 1 & 12
Date: 3 years ago
Size: 460 bytes
 

Contents

Class file image Download
<?php

class Test
{
   
/** @noinspection PhpUnhandledExceptionInspection */
   
public function testMethod()
    {

       
# TODO Test 1: Uncomment to get an Error Output
       
echo $foo;

       
# TODO Test 2: Uncomment to get an throw exception Output
        #throw new Exception('This is an Example of throw Exception');

        # TODO Test 3: Uncomment to get an shutdown Output
        #set_time_limit(1);
        #while (true) {
        #}
   
}
}