コード例 #1
0
ファイル: EventDocker.php プロジェクト: maildocker/track-php
 public function testInitWithParamsNull()
 {
     EventDocker::setAppID('933ff2214029fffe19c');
     $result = EventDocker::init();
     $this->assertEquals(401, $result->code);
 }
コード例 #2
0
ファイル: bootstrap.php プロジェクト: maildocker/track-php
<?php

include dirname(dirname(__FILE__)) . '/lib/EventDocker.php';
EventDocker::register_autoloader();
function autoload_tests($class)
{
    if (strpos($class, 'EventDockerTest_') !== 0) {
        return;
    }
    $class = substr($class, 13);
    $file = str_replace('_', '/', $class);
    if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) {
        require_once dirname(__FILE__) . '/' . $file . '.php';
    }
}
spl_autoload_register('autoload_tests');
コード例 #3
0
ファイル: EventDocker.php プロジェクト: maildocker/track-php
 public static function enableSSL()
 {
     self::$useSSL = true;
     \Unirest::verifyPeer(true);
 }