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

Commit

Permalink
Fix tests after typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Frömer committed Jun 17, 2019
1 parent 3e25e05 commit 6918dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Generator/FileGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class SampleClass
public function testDeclareUnknownDirectiveShouldRaiseException(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Declare directive must be on of: ticks, strict_types, encoding.');
$this->expectExceptionMessage('Declare directive must be one of: ticks, strict_types, encoding.');

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

FileGenerator::fromArray([
'declares' => [
Expand Down

0 comments on commit 6918dee

Please sign in to comment.