File tree Expand file tree Collapse file tree 11 files changed +79
-13
lines changed Expand file tree Collapse file tree 11 files changed +79
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ Unreleased]
4
+
5
+ ### Added
6
+
7
+ - Support for ` innmind/black-box ` ` 6 `
8
+
3
9
## 4.3.2 - 2024-10-26
4
10
5
11
### Fixed
Original file line number Diff line number Diff line change 32
32
}
33
33
},
34
34
"require-dev" : {
35
- "phpunit/phpunit" : " ~10.2" ,
35
+ "phpunit/phpunit" : " ~10.2|~11.0|~12.0 " ,
36
36
"vimeo/psalm" : " ~5.26" ,
37
- "innmind/black-box" : " ~5.0" ,
37
+ "innmind/black-box" : " ~5.0|^6.0.1 " ,
38
38
"innmind/coding-standard" : " ~2.0"
39
39
},
40
40
"conflict" : {
41
- "innmind/black-box" : " <5.0|~6 .0"
41
+ "innmind/black-box" : " <5.0|~7 .0"
42
42
},
43
43
"suggest" : {
44
44
"innmind/black-box" : " For property based testing"
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
@@ -40,7 +46,13 @@ public function testDirectories()
40
46
41
47
foreach ($ set ->values (Random::default) as $ value ) {
42
48
$ this ->assertInstanceOf (Set \Value::class, $ value );
43
- $ this ->assertTrue ($ value ->isImmutable ());
49
+
50
+ if (\interface_exists (Set \Implementation::class)) {
51
+ $ this ->assertTrue ($ value ->immutable ());
52
+ } else {
53
+ $ this ->assertTrue ($ value ->isImmutable ());
54
+ }
55
+
44
56
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
45
57
$ this ->assertTrue ($ value ->unwrap ()->directory ());
46
58
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ public function testInterface()
24
24
25
25
foreach ($ set ->values (Random::default) as $ value ) {
26
26
$ this ->assertInstanceOf (Set \Value::class, $ value );
27
- $ this ->assertTrue ($ value ->isImmutable ());
27
+
28
+ if (\interface_exists (Set \Implementation::class)) {
29
+ $ this ->assertTrue ($ value ->immutable ());
30
+ } else {
31
+ $ this ->assertTrue ($ value ->isImmutable ());
32
+ }
33
+
28
34
$ this ->assertInstanceOf (Model::class, $ value ->unwrap ());
29
35
}
30
36
}
You can’t perform that action at this time.
0 commit comments