Skip to content

Commit ac11e42

Browse files
committed
Generate local coverage report
1 parent c9ac267 commit ac11e42

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ cover
99
/docs/api
1010
build
1111
.idea
12+
coverage

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"require-dev": {
1111
"phpunit/phpunit": "5.*",
1212
"phpspec/phpspec": "^3.0",
13-
"satooshi/php-coveralls": "dev-master"
13+
"satooshi/php-coveralls": "dev-master",
14+
"leanphp/phpspec-code-coverage": "^3.2@dev"
1415
},
1516
"authors": [
1617
{

phpspec.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extensions:
2+
LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension: ~

spec/Nats/ServerInfoSpec.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
namespace spec\Nats;
3+
4+
use PhpSpec\ObjectBehavior;
5+
6+
class ServerInfoSpec extends ObjectBehavior
7+
{
8+
function let()
9+
{
10+
$message = 'INFO {"server_id":"68mIHHvevtmp5b6AzxcBfn","version":"0.9.6","go":"go1.7.3","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"tls_required":false,"tls_verify":false,"max_payload":1048576}';
11+
$this->beConstructedWith($message);
12+
}
13+
14+
function it_is_initializable()
15+
{
16+
$this->shouldHaveType('Nats\ServerInfo');
17+
}
18+
}

0 commit comments

Comments
 (0)