File: test.php

Recommend this page to a friend!
  Classes of Francisco Nez  >  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: 10 months 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) {
        #}
   
}
}

For more information send a message to info at phpclasses dot org.