Phockito::include_hamcrest PHP 메소드

include_hamcrest() 정적인 공개 메소드

Includes the Hamcrest matchers. You don't have to, but if you don't you can't to nice generic stubbing and verification
static public include_hamcrest ( $include_globals = true )
    static function include_hamcrest($include_globals = true)
    {
        set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/hamcrest-php/hamcrest');
        if ($include_globals) {
            require_once 'Hamcrest.php';
            require_once 'HamcrestTypeBridge_Globals.php';
        } else {
            require_once 'Hamcrest/Matchers.php';
            require_once 'HamcrestTypeBridge.php';
        }
    }

Usage Example

 public function setUpOnce()
 {
     if (class_exists('Phockito')) {
         Phockito::include_hamcrest(false);
     }
     parent::setUpOnce();
 }
All Usage Examples Of Phockito::include_hamcrest