Skip to content

tim-kos/Assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Assert class

Assert class to check if your application is doing fine at runtime. Throws an exception with detailed information when an assertion fails.

Sample usage:

  Assert::true(false, '404');

.. would raise an AppException with information about the error. The passed parameter would be available in the 'type' index:

  try {
    Assert::true(false, '404');
  } catch (Exception $e) {
    print_r($e->info);
  }

About

PHP class to do assertions and throw an exception on failed assertion

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors