ConnectionManagerRandomTest.php

File under a vendored source dependency pathPHP test file with any test declaration form
SHA-256142a9f22f54ef242dc4852c517f74bb25db069f06e48e64d7939859f9a47db0f
MaleculeMd(Pa₂)

Evidence

PHPUnit test method declaration lines 1–32
1<?php
2
3use ConnectionManager\Extra\Multiple\ConnectionManagerRandom;
4use ConnectionManager\Extra\ConnectionManagerReject;
5
6class ConnectionManagerRandomTest extends TestCase
7{
8 public function testEmpty()
9 {
10 $cm = new ConnectionManagerRandom();
11
12 $promise = $cm->create('www.google.com', 80);
13
14 $this->assertInstanceOf('React\Promise\PromiseInterface', $promise);
15
16 $promise->then($this->expectCallableNever(), $this->expectCallableOnce());
17 }
18
19 public function testReject()
20 {
21 $wont = new ConnectionManagerReject();
⋯11 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.