| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class TestConnectUriTest extends \PHPUnit_Framework_TestCase |
||
| 13 | { |
||
| 14 | public function testConnectUriOK() |
||
| 15 | { |
||
| 16 | $testData = new TestData([ |
||
| 17 | 'uri' => 'ssl://127.0.0.1:443', |
||
| 18 | 'context' => stream_context_create([ |
||
| 19 | "ssl" => [ |
||
| 20 | "capture_peer_cert" => true, |
||
| 21 | "verify_peer" => false, |
||
| 22 | "verify_peer_name" => false |
||
| 23 | ] |
||
| 24 | ]), |
||
| 25 | ]); |
||
| 26 | $connectionTest = new TestCase\Network\ConnectUri($testData); |
||
| 27 | $testResult = $connectionTest->getTestResult(); |
||
| 28 | $this->assertEquals(State::OK, $testResult->getState()); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function testConnectUriFailed() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |