Skip to content

Commit 0bac6e1

Browse files
authored
Merge pull request #44 from szepeviktor/patch-1
Fix a typo in QueueAllTest
2 parents cab0147 + f25d73d commit 0bac6e1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ try {
441441
$responses = await($promise);
442442
// responses successfully received
443443
} catch (Exception $e) {
444-
// an error occured while performing the requests
444+
// an error occurred while performing the requests
445445
}
446446
```
447447

examples/02-http-all.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ($responses) {
2929
}
3030
},
3131
function ($e) {
32-
echo 'An error occured: ' . $e->getMessage() . PHP_EOL;
32+
echo 'An error occurred: ' . $e->getMessage() . PHP_EOL;
3333
}
3434
);
3535

examples/03-http-any.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function ($url) {
3131
echo 'First successful URL is ' . $url . PHP_EOL;
3232
},
3333
function ($e) {
34-
echo 'An error occured: ' . $e->getMessage() . PHP_EOL;
34+
echo 'An error occurred: ' . $e->getMessage() . PHP_EOL;
3535
}
3636
);
3737

tests/QueueAllTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testAllRejectsIfHandlerIsInvalid()
2020
Queue::all(1, array(), 'foobar')->then(null, $this->expectCallableOnce());
2121
}
2222

23-
public function testWillResolveWithtEmptyArrayWithoutInvokingHandlerWhenJobsAreEmpty()
23+
public function testWillResolveWithEmptyArrayWithoutInvokingHandlerWhenJobsAreEmpty()
2424
{
2525
$promise = Queue::all(1, array(), $this->expectCallableNever());
2626

0 commit comments

Comments
 (0)