Skip to content

[WIP] Update .travis.yml for PHP 7 #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 8, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fixed tests for HHVM, fixes #24
  • Loading branch information
cebe committed Mar 4, 2016
commit c0c889f88fec4529ca8af0cd00d2b9fac4bb49b0
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ php:
- 7.0
- hhvm

matrix:
allow_failures:
- php: hhvm
fast_finish: true

install: ./travis-init.sh

script:
Expand Down
6 changes: 3 additions & 3 deletions tests/AbstractLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function runShouldReturnWhenNoMoreFds()

$this->writeToStream($input, "foo\n");

$this->assertRunFasterThan(0.005);
$this->assertRunFasterThan(0.015);
}

/** @test */
Expand All @@ -194,7 +194,7 @@ public function stopShouldStopRunningLoop()
$this->assertRunFasterThan(0.005);
}

public function testStopShouldPreventRunFromBlocking()
public function testStopShouldPreventRunFromBlocking($timeLimit = 0.005)
{
$this->loop->addTimer(
1,
Expand All @@ -209,7 +209,7 @@ function () {
}
);

$this->assertRunFasterThan(0.005);
$this->assertRunFasterThan($timeLimit);
}

public function testIgnoreRemovedCallback()
Expand Down
11 changes: 11 additions & 0 deletions tests/StreamSelectLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ public function testStreamSelectTimeoutEmulation()
$this->assertGreaterThan(0.04, $interval);
}

public function testStopShouldPreventRunFromBlocking($timeLimit = 0.005)
{
if (defined('HHVM_VERSION')) {
// HHVM is a bit slow, so give it more time
parent::testStopShouldPreventRunFromBlocking(0.5);
} else {
parent::testStopShouldPreventRunFromBlocking($timeLimit);
}
}


public function signalProvider()
{
return [
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy