Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "helmich/phpunit-json-assert",
"name": "sidz/phpunit-json-assert",
"description": "PHPUnit assertions for JSON documents",
"license": "MIT",
"authors": [
{
"name": "Martin Helmich",
"email": "[email protected]"
},
{
"name": "Oleg Zhulnev",
"homepage": "https://github.com/sidz"
}
],
"require": {
Expand All @@ -21,10 +25,13 @@
},
"autoload": {
"psr-4": {
"Helmich\\JsonAssert\\": "src/"
"Sid\\JsonAssert\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Sid\\JsonAssert\\Tests\\": "tests/"
},
"files": [
"src/Functions.php"
]
Expand Down
4 changes: 2 additions & 2 deletions src/Constraint/JsonValueMatches.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Helmich\JsonAssert\Constraint;
namespace Sid\JsonAssert\Constraint;

use Flow\JSONPath\JSONPath;
use PHPUnit\Framework\Constraint\Constraint;
Expand All @@ -8,7 +8,7 @@
* A simple constraints that asserts that a single value of a JSON document
* matches a given constraint.
*
* @package Helmich\JsonAssert
* @package Sid\JsonAssert
* @subpackage Constraint
*/
class JsonValueMatches extends Constraint
Expand Down
4 changes: 2 additions & 2 deletions src/Constraint/JsonValueMatchesMany.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Helmich\JsonAssert\Constraint;
namespace Sid\JsonAssert\Constraint;

use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Framework\Constraint\IsEqual;
Expand All @@ -8,7 +8,7 @@
* Constraint that asserts that a JSON document matches an entire set of JSON
* value constraints.
*
* @package Helmich\JsonAssert
* @package Sid\JsonAssert
* @subpackage Constraint
*/
class JsonValueMatchesMany extends Constraint
Expand Down
4 changes: 2 additions & 2 deletions src/Constraint/JsonValueMatchesSchema.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Helmich\JsonAssert\Constraint;
namespace Sid\JsonAssert\Constraint;

use JsonSchema\Validator;
use PHPUnit\Framework\Constraint\Constraint;
Expand All @@ -8,7 +8,7 @@
/**
* A constraint for asserting that a JSON document matches a schema
*
* @package Helmich\JsonAssert
* @package Sid\JsonAssert
* @subpackage Constraint
*/
class JsonValueMatchesSchema extends Constraint
Expand Down
6 changes: 3 additions & 3 deletions src/Functions.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Helmich\JsonAssert\Constraint\JsonValueMatches;
use Helmich\JsonAssert\Constraint\JsonValueMatchesMany;
use Helmich\JsonAssert\Constraint\JsonValueMatchesSchema;
use Sid\JsonAssert\Constraint\JsonValueMatches;
use Sid\JsonAssert\Constraint\JsonValueMatchesMany;
use Sid\JsonAssert\Constraint\JsonValueMatchesSchema;
use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Framework\Constraint\IsEqual;

Expand Down
10 changes: 5 additions & 5 deletions src/JsonAssertions.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace Helmich\JsonAssert;
namespace Sid\JsonAssert;

use Helmich\JsonAssert\Constraint\JsonValueMatches;
use Helmich\JsonAssert\Constraint\JsonValueMatchesMany;
use Helmich\JsonAssert\Constraint\JsonValueMatchesSchema;
use Sid\JsonAssert\Constraint\JsonValueMatches;
use Sid\JsonAssert\Constraint\JsonValueMatchesMany;
use Sid\JsonAssert\Constraint\JsonValueMatchesSchema;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Framework\Constraint\IsEqual;

/**
* A trait that can be used in test classes for easy use of JSON assertions
*
* @package Helmich\JsonAssert
* @package Sid\JsonAssert
*/
trait JsonAssertions
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/JsonValueMatchesFluentTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Helmich\JsonAssert\Tests\Functional;
namespace Sid\JsonAssert\Tests\Functional;

use PHPUnit\Framework\TestCase;

Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/JsonValueMatchesSchemaFluentTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Helmich\JsonAssert\Tests\Functional;
namespace Sid\JsonAssert\Tests\Functional;

use Helmich\JsonAssert\JsonAssertions;
use Sid\JsonAssert\JsonAssertions;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\TestCase;

Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/JsonValueMatchesSchemaTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Helmich\JsonAssert\Tests\Functional;
namespace Sid\JsonAssert\Tests\Functional;

use Helmich\JsonAssert\JsonAssertions;
use Sid\JsonAssert\JsonAssertions;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\TestCase;

Expand Down
5 changes: 2 additions & 3 deletions tests/Functional/JsonValueMatchesTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
namespace Helmich\JsonAssert\Tests\Functional;
namespace Sid\JsonAssert\Tests\Functional;

use Helmich\JsonAssert\JsonAssertions;
use Sid\JsonAssert\JsonAssertions;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\Constraint\Count;
use PHPUnit\Framework\Constraint\IsEqual;
use PHPUnit\Framework\Constraint\IsType;
Expand Down