Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a typo in QueueAllTest #44

Merged
merged 2 commits into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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