Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- nightly

matrix:
Expand Down
12 changes: 8 additions & 4 deletions tests/StringFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public function it_allows_empty_pattern()

/**
* @test
* @expectedException \Jsor\StringFormatter\Exception\InvalidFieldDescriptorCharacterException
* @expectedException \Jsor\StringFormatter\Exception\InvalidFieldDescriptorCharacterException
* @expectedExceptionMessage A field descriptor character must be a string consisting of single character, got null ("NULL").
*/
public function it_throws_for_invalid_field_descriptor_character()
{
Expand All @@ -100,7 +101,8 @@ public function it_throws_for_invalid_field_descriptor_character()

/**
* @test
* @expectedException \Jsor\StringFormatter\Exception\InvalidFieldDescriptorCharacterException
* @expectedException \Jsor\StringFormatter\Exception\InvalidFieldDescriptorCharacterException
* @expectedExceptionMessage A field descriptor character must be a string consisting of single character, got "ab" ("string").
*/
public function it_throws_for_too_long_field_descriptor_character()
{
Expand All @@ -113,7 +115,8 @@ public function it_throws_for_too_long_field_descriptor_character()

/**
* @test
* @expectedException \Jsor\StringFormatter\Exception\MissingFieldDescriptorException
* @expectedException \Jsor\StringFormatter\Exception\MissingFieldDescriptorException
* @expectedExceptionMessage Missing field description for character "a".
*/
public function it_throws_for_missing_field_descriptor_in_strict_mode()
{
Expand All @@ -124,7 +127,8 @@ public function it_throws_for_missing_field_descriptor_in_strict_mode()

/**
* @test
* @expectedException \Jsor\StringFormatter\Exception\MissingFieldValueException
* @expectedException \Jsor\StringFormatter\Exception\MissingFieldValueException
* @expectedExceptionMessage The value for the field "a" is missing.
*/
public function it_throws_for_missing_required_field_value()
{
Expand Down