Skip to content

Commit

Permalink
Merge pull request #1 from open-source-contributions/test_enhancement
Browse files Browse the repository at this point in the history
Test enhancement
  • Loading branch information
ottosmops authored Jun 30, 2020
2 parents 2d4806a + 7f054a6 commit a76a66b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'

before_script:
- travis_retry composer self-update
Expand Down
7 changes: 3 additions & 4 deletions tests/ParseIdsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class ParseIdsTest extends TestCase
{
/** test */
public function test_it_parses_a_single_integer()
{
$expected = [3];
Expand Down Expand Up @@ -36,19 +35,19 @@ public function test_it_something_complicated()
$this->assertEquals($expected, $actual);
}

public function test_it_thows_a_invalid_argument_exception()
public function test_it_throws_a_invalid_argument_exception()
{
$this->expectException(\InvalidArgumentException::class);
Ids::parse("5--3");
}

public function test_it_thows_a_invalid_argument_exception2()
public function test_it_throws_a_invalid_argument_exception2()
{
$this->expectException(\InvalidArgumentException::class);
Ids::parse("hallo");
}

public function test_it_thows_a_invalid_argument_exception3()
public function test_it_throws_a_invalid_argument_exception3()
{
$this->expectException(\InvalidArgumentException::class);
Ids::parse("3&5");
Expand Down

0 comments on commit a76a66b

Please sign in to comment.