本文整理匯總了PHP中Test::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP Test::setUp方法的具體用法?PHP Test::setUp怎麽用?PHP Test::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Test
的用法示例。
在下文中一共展示了Test::setUp方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setUp
/**
* @inheritdoc
*/
public function setUp()
{
parent::setUp();
$location = new InMemoryLocation("127.0.0.1", 5555);
$this->server = new ZeroMqServer($location);
$this->client = new ZeroMqClient($location);
}
示例2: setUp
protected function setUp()
{
parent::setUp();
$this->handler = \PhpConsole\Handler::getInstance();
$this->connector = $this->getMockBuilder('\\PhpConsole\\Connector')->disableOriginalConstructor()->setMethods(array('sendMessage', 'onShutDown', 'isActiveClient'))->getMock();
$this->connector->expects($this->any())->method('isActiveClient')->will($this->returnValue(true));
$this->setProtectedProperty($this->handler, 'connector', $this->connector);
}
示例3: setUp
public function setUp()
{
parent::setUp();
// TODO: Change the autogenerated stub
$guzzle = new \GuzzleHttp\Client();
$baseUrl = 'https://mss.swicpc.bankgirot.se/swish-cpcapi/api/v1';
$options = ['verify' => __DIR__ . '/../_data/ca.crt', 'cert' => __DIR__ . '/../_data/cl.crt', 'ssl_key' => [__DIR__ . '/../_data/key.pem', 'swish']];
$this->client = new Client($guzzle, $baseUrl, $options);
}
示例4: setUp
protected function setUp()
{
parent::setUp();
$this->connector = \PhpConsole\Connector::getInstance();
}
示例5: __construct
public function __construct()
{
parent::setUp();
}
示例6: setUp
protected function setUp()
{
parent::setUp();
$this->randomOutputMustPresentInResponse = false;
}
示例7: setUp
protected function setUp()
{
parent::setUp();
$this->dumper = new \PhpConsole\Dumper();
}
示例8: setUp
protected function setUp()
{
parent::setUp();
$this->connector = $this->initConnectorMock();
$this->dispatcher = $this->initDispatcher($this->connector);
}
示例9: setUp
protected function setUp()
{
parent::setUp();
$this->evalProvider = new \PhpConsole\EvalProvider();
}
示例10: setUp
protected function setUp()
{
parent::setUp();
$this->storage = $this->initStorage();
}