File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "name" : " helmich /phpunit-json-assert" ,
2+ "name" : " sidz /phpunit-json-assert" ,
33 "description" : " PHPUnit assertions for JSON documents" ,
44 "license" : " MIT" ,
55 "authors" : [
66 {
77 "name" : " Martin Helmich" ,
88 "email" : " m.helmich@mittwald.de"
9+ },
10+ {
11+ "name" : " Oleg Zhulnev" ,
12+ "homepage" : " https://github.com/sidz"
913 }
1014 ],
1115 "require" : {
2125 },
2226 "autoload" : {
2327 "psr-4" : {
24- "Helmich \\ JsonAssert\\ " : " src/"
28+ "Sid \\ JsonAssert\\ " : " src/"
2529 }
2630 },
2731 "autoload-dev" : {
32+ "psr-4" : {
33+ "Sid\\ JsonAssert\\ Tests\\ " : " tests/"
34+ },
2835 "files" : [
2936 " src/Functions.php"
3037 ]
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Constraint ;
2+ namespace Sid \JsonAssert \Constraint ;
33
44use Flow \JSONPath \JSONPath ;
55use PHPUnit \Framework \Constraint \Constraint ;
88 * A simple constraints that asserts that a single value of a JSON document
99 * matches a given constraint.
1010 *
11- * @package Helmich \JsonAssert
11+ * @package Sid \JsonAssert
1212 * @subpackage Constraint
1313 */
1414class JsonValueMatches extends Constraint
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Constraint ;
2+ namespace Sid \JsonAssert \Constraint ;
33
44use PHPUnit \Framework \Constraint \Constraint ;
55use PHPUnit \Framework \Constraint \IsEqual ;
88 * Constraint that asserts that a JSON document matches an entire set of JSON
99 * value constraints.
1010 *
11- * @package Helmich \JsonAssert
11+ * @package Sid \JsonAssert
1212 * @subpackage Constraint
1313 */
1414class JsonValueMatchesMany extends Constraint
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Constraint ;
2+ namespace Sid \JsonAssert \Constraint ;
33
44use JsonSchema \Validator ;
55use PHPUnit \Framework \Constraint \Constraint ;
88/**
99 * A constraint for asserting that a JSON document matches a schema
1010 *
11- * @package Helmich \JsonAssert
11+ * @package Sid \JsonAssert
1212 * @subpackage Constraint
1313 */
1414class JsonValueMatchesSchema extends Constraint
Original file line number Diff line number Diff line change 11<?php
22
3- use Helmich \JsonAssert \Constraint \JsonValueMatches ;
4- use Helmich \JsonAssert \Constraint \JsonValueMatchesMany ;
5- use Helmich \JsonAssert \Constraint \JsonValueMatchesSchema ;
3+ use Sid \JsonAssert \Constraint \JsonValueMatches ;
4+ use Sid \JsonAssert \Constraint \JsonValueMatchesMany ;
5+ use Sid \JsonAssert \Constraint \JsonValueMatchesSchema ;
66use PHPUnit \Framework \Constraint \Constraint ;
77use PHPUnit \Framework \Constraint \IsEqual ;
88
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert ;
2+ namespace Sid \JsonAssert ;
33
4- use Helmich \JsonAssert \Constraint \JsonValueMatches ;
5- use Helmich \JsonAssert \Constraint \JsonValueMatchesMany ;
6- use Helmich \JsonAssert \Constraint \JsonValueMatchesSchema ;
4+ use Sid \JsonAssert \Constraint \JsonValueMatches ;
5+ use Sid \JsonAssert \Constraint \JsonValueMatchesMany ;
6+ use Sid \JsonAssert \Constraint \JsonValueMatchesSchema ;
77use PHPUnit \Framework \Assert ;
88use PHPUnit \Framework \Constraint \Constraint ;
99use PHPUnit \Framework \Constraint \IsEqual ;
1010
1111/**
1212 * A trait that can be used in test classes for easy use of JSON assertions
1313 *
14- * @package Helmich \JsonAssert
14+ * @package Sid \JsonAssert
1515 */
1616trait JsonAssertions
1717{
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Tests \Functional ;
2+ namespace Sid \JsonAssert \Tests \Functional ;
33
44use PHPUnit \Framework \TestCase ;
55
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Tests \Functional ;
2+ namespace Sid \JsonAssert \Tests \Functional ;
33
4- use Helmich \JsonAssert \JsonAssertions ;
4+ use Sid \JsonAssert \JsonAssertions ;
55use PHPUnit \Framework \AssertionFailedError ;
66use PHPUnit \Framework \TestCase ;
77
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Tests \Functional ;
2+ namespace Sid \JsonAssert \Tests \Functional ;
33
4- use Helmich \JsonAssert \JsonAssertions ;
4+ use Sid \JsonAssert \JsonAssertions ;
55use PHPUnit \Framework \AssertionFailedError ;
66use PHPUnit \Framework \TestCase ;
77
Original file line number Diff line number Diff line change 11<?php
2- namespace Helmich \JsonAssert \Tests \Functional ;
2+ namespace Sid \JsonAssert \Tests \Functional ;
33
4- use Helmich \JsonAssert \JsonAssertions ;
4+ use Sid \JsonAssert \JsonAssertions ;
55use PHPUnit \Framework \AssertionFailedError ;
66use PHPUnit \Framework \Attributes \DataProvider ;
7- use PHPUnit \Framework \Attributes \RequiresPhpunit ;
87use PHPUnit \Framework \Constraint \Count ;
98use PHPUnit \Framework \Constraint \IsEqual ;
109use PHPUnit \Framework \Constraint \IsType ;
You can’t perform that action at this time.
0 commit comments