本文整理汇总了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();
}