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 @@ -12,7 +12,7 @@
},
"require-dev": {
"clue/block-react": "^1.2",
"phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35"
"phpunit/phpunit": "^9.0 || ^4.8.35"
},
"autoload": {
"psr-4": { "React\\Dns\\": "src" }
Expand Down
11 changes: 1 addition & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="React Test Suite">
<directory>./tests/</directory>
Expand Down
4 changes: 1 addition & 3 deletions tests/Config/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ public function testLoadsFromExplicitPath()
$this->assertEquals(array('8.8.8.8'), $config->nameservers);
}

/**
* @expectedException RuntimeException
*/
public function testLoadThrowsWhenPathIsInvalid()
{
$this->setExpectedException('RuntimeException');
Config::loadResolvConfBlocking(__DIR__ . '/invalid.conf');
}

Expand Down
4 changes: 1 addition & 3 deletions tests/Config/HostsFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ public function testDefaultShouldHaveLocalhostMapped()
$this->assertContains('127.0.0.1', $hosts->getIpsForHost('localhost'));
}

/**
* @expectedException RuntimeException
*/
public function testLoadThrowsForInvalidPath()
{
$this->setExpectedException('RuntimeException');
HostsFile::loadFromPathBlocking('does/not/exist');
}

Expand Down
5 changes: 4 additions & 1 deletion tests/FunctionalResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

class FunctionalTest extends TestCase
{
public function setUp()
/**
* @before
*/
public function setUpResolver()
{
$this->loop = LoopFactory::create();

Expand Down
Loading