diff --git a/src/Command/GenerateEquivset.php b/src/Command/GenerateEquivset.php
index ef36093..0b807a4 100644
--- a/src/Command/GenerateEquivset.php
+++ b/src/Command/GenerateEquivset.php
@@ -110,8 +110,6 @@ public function execute( InputInterface $input, OutputInterface $output ) {
if ( Utils::codepointToUtf8( hexdec( $m['hexleft'] ) ) != $m['charleft'] ) {
$actual = Utils::utf8ToCodepoint( $m['charleft'] );
if ( $actual === false ) {
- $output->writeln( "Bytes: " . strlen( $m['charleft'] ) );
- $output->writeln( bin2hex( $line ) );
$hexForm = bin2hex( $m['charleft'] );
$output->writeln( "Invalid UTF-8 character \"{$m['charleft']}\" ($hexForm) at " .
"line $lineNum: $line" );
@@ -127,7 +125,7 @@ public function execute( InputInterface $input, OutputInterface $output ) {
$actual = Utils::utf8ToCodepoint( $m['charright'] );
if ( $actual === false ) {
$hexForm = bin2hex( $m['charright'] );
- $output->writeln( "Invalid UTF-8 character \"{$m['charleft']}\" ($hexForm) at " .
+ $output->writeln( "Invalid UTF-8 character \"{$m['charright']}\" ($hexForm) at " .
"line $lineNum: $line" );
} else {
$output->writeln( "Error: right number ({$m['hexright']}) does not match right " .
diff --git a/tests/Command/GenerateEquivsetTest.php b/tests/Command/GenerateEquivsetTest.php
index ff8f0f2..9efcb9a 100644
--- a/tests/Command/GenerateEquivsetTest.php
+++ b/tests/Command/GenerateEquivsetTest.php
@@ -156,10 +156,10 @@ public function testExecuteFailMalformed() {
$output = $this->getMockBuilder( OutputInterface::class )
->getMock();
$output->method( 'writeln' )
- ->with( $this->logicalOr(
- $this->stringContains( 'Error: invalid entry' ),
- $this->stringContains( 'Finished with errors' )
- ) );
+ ->withConsecutive(
+ [ $this->stringContains( 'Error: invalid entry' ) ],
+ [ $this->stringContains( 'Finished with errors' ) ]
+ );
$status = $command->execute( $input, $output );
$this->assertSame( 1, $status );
@@ -210,10 +210,10 @@ public function testExecuteFailNotMatchingCodepoint( $side, $number, $in ) {
$output = $this->getMockBuilder( OutputInterface::class )
->getMock();
$output->method( 'writeln' )
- ->with( $this->logicalOr(
- $this->stringContains( "Error: $side number ($number) does not match" ),
- $this->stringContains( 'Finished with errors' )
- ) );
+ ->withConsecutive(
+ [ $this->stringContains( "Error: $side number ($number) does not match" ) ],
+ [ $this->stringContains( 'Finished with errors' ) ]
+ );
$status = $command->execute( $input, $output );
@@ -263,12 +263,10 @@ public function testExecuteFailInvalidChar( $in ) {
$output = $this->getMockBuilder( OutputInterface::class )
->getMock();
$output->method( 'writeln' )
- ->with( $this->logicalOr(
- $this->stringContains( 'Bytes' ),
- $this->stringContains( bin2hex( $in ) ),
- $this->stringContains( 'Invalid UTF-8 character' ),
- $this->stringContains( 'Finished with errors' )
- ) );
+ ->withConsecutive(
+ [ $this->stringContains( 'Invalid UTF-8 character' ) ],
+ [ $this->stringContains( 'Finished with errors' ) ]
+ );
$status = $command->execute( $input, $output );