June 2017
Intermediate to advanced
536 pages
9h 49m
English
Assertions are runtime checks used as a debugging feature. Using the PHP 7 assert() language construct, we can confirm whether certain PHP expressions are true or false. Whenever the assertion fails, AssertionError is thrown.
The AssertionError class has no methods of its own, they are all inherited from the parent Error class, as per the following class synopsis:
AssertionError extends Error { final public string Error::getMessage (void) final public Throwable Error::getPrevious (void) final public mixed Error::getCode (void) final public string Error::getFile (void) final public int Error::getLine (void) final public array Error::getTrace (void) final public string Error::getTraceAsString (void) public string Error::__toString ...