Skip to content

Commit 57bec90

Browse files
committed
Clean up test suite
1 parent 63dcdef commit 57bec90

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
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\\Csv\\": "src/" }
1515
},
16+
"autoload-dev": {
17+
"psr-4": { "Clue\\Tests\\React\\Csv\\": "tests/" }
18+
},
1619
"require": {
1720
"php": ">=5.3",
1821
"react/stream": "^1.0 || ^0.7 || ^0.6"

phpunit.xml.dist

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

3-
<phpunit bootstrap="tests/bootstrap.php"
4-
colors="true"
5-
>
3+
<phpunit bootstrap="vendor/autoload.php" colors="true">
64
<testsuites>
75
<testsuite name="CSV test suite">
86
<directory>./tests/</directory>

tests/AssocDecoderTest.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\Csv;
4+
35
use Clue\React\Csv\AssocDecoder;
46
use React\Stream\ReadableResourceStream;
57

tests/DecoderTest.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\Csv;
4+
35
use React\Stream\ReadableResourceStream;
46
use Clue\React\Csv\Decoder;
57

tests/EncoderTest.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\Csv;
4+
35
use React\Stream\WritableResourceStream;
46
use Clue\React\Csv\Encoder;
57

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

3-
use PHPUnit\Framework\TestCase as BaseTestCase;
4-
5-
require_once __DIR__ . '/../vendor/autoload.php';
3+
namespace Clue\Tests\React\Csv;
64

7-
error_reporting(-1);
5+
use PHPUnit\Framework\TestCase as BaseTestCase;
86

97
class TestCase extends BaseTestCase
108
{

0 commit comments

Comments
 (0)