Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab279f1

Browse files
committed
doc: Updated badges
1 parent 90241b0 commit ab279f1

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

‎README.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
[![Latest Stable Version](https://poser.pugx.org/estahn/phpunit-json-assertions/version.png)](https://packagist.org/packages/estahn/phpunit-json-assertions)
44
[![Total Downloads](https://poser.pugx.org/estahn/phpunit-json-assertions/d/total.png)](https://packagist.org/packages/estahn/phpunit-json-assertions)
5-
[![Dependency Status](https://www.versioneye.com/user/projects/56e8f6404e714c0035e760f3/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56e8f6404e714c0035e760f3)
65
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/581c093b-833a-49c2-a05c-d99aaf8f39c2/mini.png)](https://insight.sensiolabs.com/projects/581c093b-833a-49c2-a05c-d99aaf8f39c2)
76
[![Build Status](https://travis-ci.org/estahn/phpunit-json-assertions.png?branch=master)](https://travis-ci.org/estahn/phpunit-json-assertions)
87
[![StyleCI](https://styleci.io/repos/53177096/shield)](https://styleci.io/repos/53177096)
8+
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/estahn/phpunit-json-assertions.svg)](http://isitmaintained.com/project/estahn/phpunit-json-assertions "Average time to resolve an issue")
9+
[![Percentage of issues still open](http://isitmaintained.com/badge/open/estahn/phpunit-json-assertions.svg)](http://isitmaintained.com/project/estahn/phpunit-json-assertions "Percentage of issues still open")
910

1011
JSON assertions for PHPUnit includes traits/methods to help validate your JSON data through various methods.
1112

@@ -24,7 +25,7 @@ JSON assertions for PHPUnit includes traits/methods to help validate your JSON d
2425
## Install
2526

2627
$ composer require estahn/phpunit-json-assertions --dev
27-
28+
2829
or in your `composer.json`:
2930

3031
```json
@@ -57,12 +58,11 @@ You can either use the `trait` or `class` version.
5758
namespace EnricoStahn\JsonAssert\Tests;
5859

5960
use EnricoStahn\JsonAssert\Assert as JsonAssert;
60-
use PHPUnit\Framework\TestCase;
6161

62-
class MyTestCase extends TestCase
62+
class MyTestCase extends \PHPUnit_Framework_TestCase
6363
{
6464
use JsonAssert;
65-
65+
6666
public function testJsonDocumentIsValid()
6767
{
6868
// my-schema.json
@@ -76,9 +76,9 @@ class MyTestCase extends TestCase
7676
// },
7777
// "required" : [ "foo" ]
7878
// }
79-
79+
8080
$json = json_decode('{"foo":1}');
81-
81+
8282
$this->assertJsonMatchesSchema('./my-schema.json', $json);
8383
$this->assertJsonValueEquals(1, '* | [0]', $json);
8484
}
@@ -87,7 +87,7 @@ class MyTestCase extends TestCase
8787

8888
### Class
8989

90-
In case you don't want to use the `trait` you can use the provided class wich extends from `PHPUnit\Framework\TestCase`.
90+
In case you don't want to use the `trait` you can use the provided class wich extends from `\PHPUnit_Framework_TestCase`.
9191
You can either extend your test case or use the static methods like below.
9292

9393
```php
@@ -96,9 +96,8 @@ You can either extend your test case or use the static methods like below.
9696
namespace EnricoStahn\JsonAssert\Tests;
9797

9898
use EnricoStahn\JsonAssert\AssertClass as JsonAssert;
99-
use PHPUnit\Framework\TestCase;
10099

101-
class MyTestCase extends TestCase
100+
class MyTestCase extends \PHPUnit_Framework_TestCase
102101
{
103102
public function testJsonDocumentIsValid()
104103
{
@@ -113,9 +112,9 @@ class MyTestCase extends TestCase
113112
// },
114113
// "required" : [ "foo" ]
115114
// }
116-
115+
117116
$json = json_decode('{"foo":1}');
118-
117+
119118
JsonAssert::assertJsonMatchesSchema('./my-schema.json', $json);
120119
JsonAssert::assertJsonValueEquals(1, '* | [0]', $json);
121120
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /