File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
### Changed
22
22
- Used PHPStan's int-mask-of<T > type where applicable ([ #779 ] ( https://github.com/jsonrainbow/json-schema/pull/779 ) )
23
23
- Fixed some PHPStan errors ([ #781 ] ( https://github.com/jsonrainbow/json-schema/pull/781 ) )
24
+ - Cleanup redundant checks ([ #796 ] ( https://github.com/jsonrainbow/json-schema/pull/796 ) )
24
25
25
26
## [ 6.1.0] - 2025-02-04
26
27
### Added
Original file line number Diff line number Diff line change 2
2
3
3
namespace JsonSchema \Tests ;
4
4
5
+ use JsonSchema \Exception \InvalidArgumentException ;
5
6
use JsonSchema \Validator ;
6
7
use PHPUnit \Framework \TestCase ;
7
8
@@ -31,18 +32,12 @@ public function testValidateWithAssocSchemaWithRelativeRefs(): void
31
32
32
33
public function testBadAssocSchemaInput (): void
33
34
{
34
- if (version_compare (phpversion (), '5.5.0 ' , '< ' )) {
35
- $ this ->markTestSkipped ('PHP versions < 5.5.0 trigger an error on json_encode issues ' );
36
- }
37
- if (defined ('HHVM_VERSION ' )) {
38
- $ this ->markTestSkipped ('HHVM has no problem with encoding resources ' );
39
- }
40
- $ schema = ['propertyOne ' => fopen ('php://stdout ' , 'w ' )];
35
+ $ schema = ['propertyOne ' => fopen ('php://stdout ' , 'wb ' )];
41
36
$ data = json_decode ('{"propertyOne":[42]} ' , true );
42
37
43
38
$ validator = new Validator ();
44
39
45
- $ this ->expectException (' \JsonSchema\Exception\ InvalidArgumentException' );
40
+ $ this ->expectException (InvalidArgumentException::class );
46
41
$ validator ->validate ($ data , $ schema );
47
42
}
48
43
You can’t perform that action at this time.
0 commit comments