File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ foreach ($rows as $row) {
54
54
## Installation
55
55
56
56
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:
58
58
59
59
** Install package:**
60
60
Original file line number Diff line number Diff line change 9
9
10
10
class CsvFileErrorsTest extends TestCase
11
11
{
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
-
20
12
public function testException ()
21
13
{
22
14
try {
23
- $ csv = new CsvFile (__DIR__ . '/something .csv ' );
15
+ $ csv = new CsvFile (__DIR__ . '/nonexistent .csv ' );
24
16
$ csv ->getHeader ();
25
- self ::fail ("Mush throw exception. " );
17
+ self ::fail ("Must throw exception. " );
26
18
} catch (Exception $ e ) {
27
19
self ::assertContains ('Cannot open file ' , $ e ->getMessage ());
28
20
self ::assertEquals (1 , $ e ->getCode ());
You can’t perform that action at this time.
0 commit comments