Skip to content

Commit e35a9ba

Browse files
committed
tests: removed unnecessary test
1 parent 1b41b88 commit e35a9ba

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ foreach ($rows as $row) {
5454
## Installation
5555

5656
The library is available as [composer package](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
57-
To start using composer in your project follow these steps:
57+
To start using this library in your project follow these steps:
5858

5959
**Install package:**
6060

tests/CsvFileErrorsTest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@
99

1010
class CsvFileErrorsTest extends TestCase
1111
{
12-
public function testNonExistentFile()
13-
{
14-
$csv = new CsvFile(__DIR__ . '/something.csv');
15-
self::expectException(Exception::class);
16-
self::expectExceptionMessage('Cannot open file');
17-
$csv->getHeader();
18-
}
19-
2012
public function testException()
2113
{
2214
try {
23-
$csv = new CsvFile(__DIR__ . '/something.csv');
15+
$csv = new CsvFile(__DIR__ . '/nonexistent.csv');
2416
$csv->getHeader();
25-
self::fail("Mush throw exception.");
17+
self::fail("Must throw exception.");
2618
} catch (Exception $e) {
2719
self::assertContains('Cannot open file', $e->getMessage());
2820
self::assertEquals(1, $e->getCode());

0 commit comments

Comments
 (0)