Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 6918dee

Browse files
author
Andreas Frömer
committed
Fix tests after typo
1 parent 3e25e05 commit 6918dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Generator/FileGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ class SampleClass
483483
public function testDeclareUnknownDirectiveShouldRaiseException(): void
484484
{
485485
$this->expectException(InvalidArgumentException::class);
486-
$this->expectExceptionMessage('Declare directive must be on of: ticks, strict_types, encoding.');
486+
$this->expectExceptionMessage('Declare directive must be one of: ticks, strict_types, encoding.');
487487

488488
FileGenerator::fromArray([
489489
'declares' => [
@@ -498,7 +498,7 @@ public function testDeclareUnknownDirectiveShouldRaiseException(): void
498498
public function testDeclareWrongTypeShouldRaiseException(): void
499499
{
500500
$this->expectException(InvalidArgumentException::class);
501-
$this->expectExceptionMessage('Declare value invalid. Expected integer got string.');
501+
$this->expectExceptionMessage('Declare value invalid. Expected integer, got string.');
502502

503503
FileGenerator::fromArray([
504504
'declares' => [

0 commit comments

Comments
 (0)