Skip to content

Commit 92281e9

Browse files
committed
Merge branch 'refactoring'
2 parents 7720ea8 + 357e813 commit 92281e9

17 files changed

+665
-264
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.lock
44
/phpunit.xml
55
.php_cs.cache
66
/.php_cs
7+
/.phpstan.neon

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ return PhpCsFixer\Config::create()
1616
->setFinder(
1717
PhpCsFixer\Finder::create()
1818
->in(__DIR__.'/src')
19+
->in(__DIR__.'/tests')
1920
)
2021
;

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Gos WebSocket Client
1+
WebSocketPhpClient
2+
==================
3+
4+
[![Latest Stable Version](https://poser.pugx.org/gos/websocket-client/v/stable)](https://packagist.org/packages/gos/websocket-client) [![Latest Unstable Version](https://poser.pugx.org/gos/websocket-client/v/unstable)](https://packagist.org/packages/gos/websocket-client) [![Total Downloads](https://poser.pugx.org/gos/websocket-client/downloads)](https://packagist.org/packages/gos/websocket-client) [![License](https://poser.pugx.org/gos/websocket-client/license)](https://packagist.org/packages/gos/websocket-client)
25

36
## About
47

composer.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,25 @@
2020
"psr/log": "^1.0"
2121
},
2222
"require-dev": {
23-
"friendsofphp/php-cs-fixer": "^2.16.1"
23+
"cboden/ratchet": "^0.4.2",
24+
"friendsofphp/php-cs-fixer": "^2.16.1",
25+
"phpstan/phpstan": "^0.12.14",
26+
"phpstan/phpstan-phpunit": "^0.12.6",
27+
"phpunit/phpunit": "^8.5|^9.0"
2428
},
2529
"autoload": {
26-
"psr-4": { "Gos\\Component\\WebSocketClient\\": "src/" }
30+
"psr-4": {
31+
"Gos\\Component\\WebSocketClient\\": "src/"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Gos\\Component\\WebSocketClient\\Tests\\": "tests/"
37+
}
2738
},
2839
"extra": {
2940
"branch-alias": {
30-
"dev-master": "0.3.x-dev"
41+
"dev-master": "1.x-dev"
3142
}
3243
}
3344
}

phpstan.neon.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
level: 7
3+
paths:
4+
- %currentWorkingDirectory%/src
5+
ignoreErrors:
6+
reportUnmatchedIgnoredErrors: false
7+
checkMissingIterableValueType: false
8+
checkGenericClassInNonGenericObjectType: false

phpunit.xml.dist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
backupGlobals="false"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
>
9+
<testsuites>
10+
<testsuite name="WebSocketPhpClient Test Suite">
11+
<directory>./tests</directory>
12+
</testsuite>
13+
</testsuites>
14+
15+
<filter>
16+
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<directory suffix=".php">./src</directory>
18+
</whitelist>
19+
</filter>
20+
</phpunit>

src/Exception/BadResponseException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Gos\Component\WebSocketClient\Exception;
44

5-
/**
6-
* @author Johann Saunier <[email protected]>
7-
*/
85
class BadResponseException extends WebsocketException
96
{
107
}

src/Exception/WebsocketException.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Gos\Component\WebSocketClient\Exception;
44

5-
/**
6-
* @author Johann Saunier <[email protected]>
7-
*/
85
class WebsocketException extends \Exception
96
{
107
}

0 commit comments

Comments
 (0)