Skip to content

Commit

Permalink
Merge pull request #4 from tiny-blocks/release/1.0.1
Browse files Browse the repository at this point in the history
Release/1.0.1
  • Loading branch information
gustavofreze authored Jun 3, 2023
2 parents 86df048 + 8c0a8f8 commit e6e0611
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Tiny Blocks
Copyright (c) 2022-2023 Tiny Blocks

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions tests/CountryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public function testInvalidAlphaCode(string $alphaCode): void
$template = 'Alpha code <%s> is invalid.';

$this->expectException(InvalidAlphaCode::class);
$this->expectErrorMessage(sprintf($template, $alphaCode));
$this->expectExceptionMessage(sprintf($template, $alphaCode));

Country::from(alphaCode: $alphaCode);
}

public function testInvalidAlphaCodeImplementation(): void
{
$this->expectException(InvalidAlphaCodeImplementation::class);
$this->expectErrorMessage('The alpha code implementation <TinyBlocks\Country\Mock\AlphaCodeMock> is invalid.');
$this->expectExceptionMessage('The alpha code implementation <TinyBlocks\Country\Mock\AlphaCodeMock> is invalid.');

Country::from(alphaCode: AlphaCodeMock::SWITZERLAND);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Internal/NameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class NameTest extends TestCase
public function testEmptyCountryName(): void
{
$this->expectException(EmptyCountryName::class);
$this->expectErrorMessage('Country name cannot be empty.');
$this->expectExceptionMessage('Country name cannot be empty.');

Name::from(name: '');
}
Expand Down

0 comments on commit e6e0611

Please sign in to comment.