Skip to content

Commit

Permalink
Fix typos (#250)
Browse files Browse the repository at this point in the history
# Summary <!-- Required -->

Found misspellings in docs and in function name.

## Contributor checklist <!-- Required -->

- [ ] I agree to follow this project's [**Code of
Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
- [ ] I have updated the documentation accordingly 
- [ ] I have added tests to cover changes introduced by this pull
request
- [ ] All new and existing tests pass

## Testing <!-- Required -->

-

### Reviewer checklist <!-- Required -->

<!-- The following checklist is for the reviewer: add any steps that may
be relevant while reviewing this pull request -->

- [ ] Code changes review
- [ ] Documentation changes review
- [ ] Unit tests pass
- [ ] Static analysis passes
  • Loading branch information
nmolham-godaddy authored Aug 8, 2024
2 parents 73814e2 + d0e06f6 commit 010d556
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [0.4.1](https://github.com/10up/wp_mock/compare/0.4.1...0.4.0) - 2019-02-26
### Added
- **PHPUnit 8 Compatiblity**
- **PHPUnit 8 Compatibility**
- This release brings us up to date with the latest release of PHPUnit.
- Please note: As with the previously-tagged release, this is not necessarily a stable release!

## [0.4.0](https://github.com/10up/wp_mock/compare/0.4.0...0.3.0) - 2019-01-16
### Added
- **PHPUnit 7 Compatiblity**
- **PHPUnit 7 Compatibility**
- This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is *7.1*.
- *Please note:* As with the previously-tagged release, this is not necessarily a stable release!

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributions are **welcome** and will be fully **credited**.

We accept contributions via Pull Requests on [Github](https://github.com/10up/wp_mock)
We accept contributions via Pull Requests on [GitHub](https://github.com/10up/wp_mock)

## Branches

Expand Down
2 changes: 1 addition & 1 deletion docs/general/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The bootstrap file can do a few things:

## Configure PHPUnit with WP_Mock

You can run PHPUnit using a `--bootstrap` flag to include your boostrap configuration while executing your tests (see [PHPUnit documentation](https://docs.phpunit.de/en/9.5/textui.html?highlight=--bootstrap#command-line-options)):
You can run PHPUnit using a `--bootstrap` flag to include your bootstrap configuration while executing your tests (see [PHPUnit documentation](https://docs.phpunit.de/en/9.5/textui.html?highlight=--bootstrap#command-line-options)):

```shell
./vendor/bin/phpunit --bootstrap /path/to/bootstrap.php
Expand Down
23 changes: 16 additions & 7 deletions features/bootstrap/FunctionsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,22 @@ public function iExpectWhenIRunWithArgs( $return, $function, TableNode $args ) {
\PHPUnit\Framework\Assert::assertEquals( $return, call_user_func_array( $function, $args->getRow( 0 ) ) );
}

/**
* @Then I expect :return when I run :function
*/
public function iExcpectWhenIRun( $return, $function ) {
$this->iExpectWhenIRunWithArgs( $return, $function, new TableNode( array( array() ) ) );
}

/**
* @Then I expect :return when I run :function
*
* @deprected use static::iExpectWhenIRun instead
*/
public function iExcpectWhenIRun( $return, $function ) {
static::iExpectWhenIRun( $return, $function )
}

/**
* @Then I expect :return when I run :function
*/
public function iExpectWhenIRun( $return, $function ) {
$this->iExpectWhenIRunWithArgs( $return, $function, new TableNode( array( array() ) ) );
}

/**
* @Then I expect an error when I run :function with args:
*/
Expand Down

0 comments on commit 010d556

Please sign in to comment.