diff --git a/README.md b/README.md index 10c0999..bc4add1 100644 --- a/README.md +++ b/README.md @@ -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 } ``` diff --git a/examples/02-http-all.php b/examples/02-http-all.php index 3eaf0bd..0cda97c 100644 --- a/examples/02-http-all.php +++ b/examples/02-http-all.php @@ -29,7 +29,7 @@ function ($responses) { } }, function ($e) { - echo 'An error occured: ' . $e->getMessage() . PHP_EOL; + echo 'An error occurred: ' . $e->getMessage() . PHP_EOL; } ); diff --git a/examples/03-http-any.php b/examples/03-http-any.php index 9f96e8c..8093774 100644 --- a/examples/03-http-any.php +++ b/examples/03-http-any.php @@ -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; } ); diff --git a/tests/QueueAllTest.php b/tests/QueueAllTest.php index 78df102..31f2026 100644 --- a/tests/QueueAllTest.php +++ b/tests/QueueAllTest.php @@ -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());