Skip to content

Commit bea4be0

Browse files
committed
Drop support for XP < 9
See xp-framework/rfc#341
1 parent 874c200 commit bea4be0

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Data sequences change log
33

44
## ?.?.? / ????-??-??
55

6+
## 10.0.0 / 2021-10-21
7+
8+
* Implemented xp-framework/rfc#341, dropping compatibility with XP 9
9+
(@thekid)
10+
611
## 9.3.0 / 2021-10-15
712

813
* Merged PR #53: Implement `Sequence::zip()` intermediate operation

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"description" : "Data sequences",
77
"keywords": ["module", "xp"],
88
"require" : {
9-
"xp-framework/core": "^10.2",
10-
"xp-framework/collections": "^10.0 | ^9.0 | ^8.0 | ^7.0",
9+
"xp-framework/core": "^11.0 | ^10.2",
10+
"xp-framework/collections": "^10.0 | ^9.0 | ^8.0",
1111
"php" : ">=7.0.0"
1212
},
1313
"require-dev" : {

src/test/php/util/data/unittest/EachTest.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ public function writing_to_stream() {
4343

4444
Sequence::of([1, 2, 3, 4])->each([$out, 'write']);
4545

46-
Assert::equals('1234', $out->getBytes());
46+
Assert::equals('1234', $out->bytes());
4747
}
4848

4949
#[Test]
5050
public function writing_to_console_out() {
51-
$orig= Console::$out->getStream();
51+
$orig= Console::$out->stream();
5252
$out= new MemoryOutputStream();
5353

5454
try {
55-
Console::$out->setStream($out);
55+
Console::$out->redirect($out);
5656
Sequence::of([1, 2, 3, 4])->each('util.cmd.Console::write', []);
5757
} finally {
58-
Console::$out->setStream($orig);
58+
Console::$out->redirect($orig);
5959
}
6060

61-
Assert::equals('1234', $out->getBytes());
61+
Assert::equals('1234', $out->bytes());
6262
}
6363

6464
#[Test]

src/test/php/util/data/unittest/PeekTest.class.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,17 @@ public function keys() {
3838

3939
#[Test]
4040
public function writing_to_console_out() {
41-
$orig= Console::$out->getStream();
41+
$orig= Console::$out->stream();
4242
$out= new MemoryOutputStream();
43-
Console::$out->setStream($out);
4443

4544
try {
46-
Console::$out->setStream($out);
45+
Console::$out->redirect($out);
4746
Sequence::of([1, 2, 3, 4])->peek('util.cmd.Console::write', [])->each();
4847
} finally {
49-
Console::$out->setStream($orig);
48+
Console::$out->redirect($orig);
5049
}
5150

52-
Console::$out->setStream($orig);
53-
Assert::equals('1234', $out->getBytes());
51+
Assert::equals('1234', $out->bytes());
5452
}
5553

5654
#[Test]

0 commit comments

Comments
 (0)