Skip to content

Commit 4cc5dc4

Browse files
committed
Clean up test suite
1 parent 595c008 commit 4cc5dc4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"autoload": {
1414
"psr-4": { "Clue\\React\\Mdns\\": "src/" }
1515
},
16+
"autoload-dev": {
17+
"psr-4": { "Clue\\Tests\\React\\Mdns\\": "tests/" }
18+
},
1619
"require": {
1720
"php": ">=5.3",
1821
"clue/multicast-react": "^1.0 || ^0.2",

phpunit.xml.dist

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit bootstrap="tests/bootstrap.php"
4-
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
>
3+
<phpunit bootstrap="vendor/autoload.php" colors="true">
94
<testsuites>
105
<testsuite name="mDNS React Test Suite">
116
<directory>./tests/</directory>

tests/FactoryTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Clue\Tests\React\Mdns;
4+
35
use Clue\React\Mdns\Factory;
46

57
class FactoryTest extends TestCase

tests/MulticastExecutorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Clue\Tests\React\Mdns;
4+
35
use Clue\React\Mdns\MulticastExecutor;
46
use Clue\React\Mdns\Factory;
57
use React\Dns\Query\Query;

tests/bootstrap.php renamed to tests/TestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<?php
22

3-
require __DIR__ . '/../vendor/autoload.php';
3+
namespace Clue\Tests\React\Mdns;
44

5-
error_reporting(-1);
6-
7-
class TestCase extends PHPUnit\Framework\TestCase
5+
class TestCase extends \PHPUnit\Framework\TestCase
86
{
97
protected function expectCallableOnce()
108
{

0 commit comments

Comments
 (0)