Skip to content

Commit

Permalink
Merge pull request #44 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in QueueAllTest
  • Loading branch information
clue committed Jul 29, 2023
2 parents cab0147 + f25d73d commit 0bac6e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ try {
$responses = await($promise);
// responses successfully received
} catch (Exception $e) {
// an error occured while performing the requests
// an error occurred while performing the requests
}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/02-http-all.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ($responses) {
}
},
function ($e) {
echo 'An error occured: ' . $e->getMessage() . PHP_EOL;
echo 'An error occurred: ' . $e->getMessage() . PHP_EOL;
}
);

2 changes: 1 addition & 1 deletion examples/03-http-any.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function ($url) {
echo 'First successful URL is ' . $url . PHP_EOL;
},
function ($e) {
echo 'An error occured: ' . $e->getMessage() . PHP_EOL;
echo 'An error occurred: ' . $e->getMessage() . PHP_EOL;
}
);

2 changes: 1 addition & 1 deletion tests/QueueAllTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testAllRejectsIfHandlerIsInvalid()
Queue::all(1, array(), 'foobar')->then(null, $this->expectCallableOnce());
}

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

Expand Down

0 comments on commit 0bac6e1

Please sign in to comment.