CMB2 Documentation
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks
  • Download Docs
  • Github

Packages

  • CMB2
  • Demo
    • CMB2
  • None
  • Tests
    • CMB2

Classes

  • Test_CMB2
  • Test_CMB2_Ajax
  • Test_CMB2_Core
  • Test_CMB2_Field
  • Test_CMB2_JS
  • Test_CMB2_Object
  • Test_CMB2_Options
  • Test_CMB2_REST
  • Test_CMB2_Rest_Base
  • Test_CMB2_REST_Controllers
  • Test_CMB2_REST_Object
  • Test_CMB2_REST_Registered_Fields
  • Test_CMB2_Types
  • Test_CMB2_Types_Base
  • Test_CMB2_Types_Display
  • Test_CMB2_Utils

Exceptions

  • Test_CMB2_Exception

Hooks

  • Hook Reference

Class Test_CMB2_Exception

Custom exception class because PHPunit < 3.7 has the following error: "InvalidArgumentException: You must not expect the generic exception class."

Exception implements Throwable
Extended by Test_CMB2_Exception
Package: Tests\CMB2
License: GPL-2.0+
Author: CMB2 team
Link: http://stackoverflow.com/a/10744841
Located at tests/test-cmb-core.php

Methods summary

public
# __construct( $message = null, $code = 0, Exception $previous = null )

Overrides

Exception::__construct

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

CMB2 Documentation API documentation generated by ApiGen