Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"require-dev": {
"clue/block-react": "^1.0",
"clue/socks-react": "^0.8",
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4",
"phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35",
"react/http": "^0.7.2"
}
}
30 changes: 24 additions & 6 deletions tests/FunctionalBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public function setUp()
$this->browser = new Browser($this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testSimpleRequest()
{
Block\await($this->browser->get($this->base . 'get'), $this->loop);
Expand All @@ -42,19 +45,28 @@ public function testCancelPromiseWillRejectRequest()
Block\await($promise, $this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testRedirectRequestRelative()
{
Block\await($this->browser->get($this->base . 'redirect-to?url=get'), $this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testRedirectRequestAbsolute()
{
Block\await($this->browser->get($this->base . 'redirect-to?url=' . urlencode($this->base . 'get')), $this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testNotFollowingRedirectsResolvesWithRedirectResult()
{
$browser = $this->browser->withOptions(array('followRedirects' => false));
Expand All @@ -73,7 +85,10 @@ public function testRejectingRedirectsRejects()
Block\await($browser->get($this->base . 'redirect/3'), $this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testCanAccessHttps()
{
if (!function_exists('stream_socket_enable_crypto')) {
Expand Down Expand Up @@ -104,7 +119,10 @@ public function testVerifyPeerEnabledForBadSslRejects()
Block\await($browser->get('https://self-signed.badssl.com/'), $this->loop);
}

/** @group online */
/**
* @group online
* @doesNotPerformAssertions
*/
public function testVerifyPeerDisabledForBadSslResolves()
{
if (!function_exists('stream_socket_enable_crypto')) {
Expand Down