Skip to content

Commit 1534a34

Browse files
committed
Clean up test suite
1 parent 3c9f875 commit 1534a34

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
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\\Shell\\": "src/" }
1515
},
16+
"autoload-dev": {
17+
"psr-4": { "Clue\\Tests\\React\\Shell\\": "tests/" }
18+
},
1619
"require": {
1720
"php": ">=5.3",
1821
"react/child-process": "^0.5 || ^0.4 || ^0.3",

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="Shell React Test Suite">
116
<directory>./tests/</directory>

tests/DeferredShellTest.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\Shell;
4+
35
use Clue\React\Shell\DeferredShell;
46

57
class DeferredShellTest extends TestCase

tests/FunctionalTest.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\Shell;
4+
35
use React\EventLoop\Factory;
46
use Clue\React\Shell\ProcessLauncher;
57

tests/ProcessLauncherTest.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\Shell;
4+
35
use Clue\React\Shell\ProcessLauncher;
46

57
class ProcessLauncherTest extends TestCase

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

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

3+
namespace Clue\Tests\React\Shell;
4+
35
use React\EventLoop\LoopInterface;
46
use React\Promise\PromiseInterface;
57

6-
require_once __DIR__ . '/../vendor/autoload.php';
7-
8-
error_reporting(-1);
9-
10-
class TestCase extends PHPUnit\Framework\TestCase
8+
class TestCase extends \PHPUnit\Framework\TestCase
119
{
1210
protected function expectCallableOnce()
1311
{

0 commit comments

Comments
 (0)