Skip to content

Commit

Permalink
Merge pull request #1050 from pgrimaud/master
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
robertbasic committed Apr 24, 2020
2 parents 05b2459 + 165764d commit eca936d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/cookbook/mocking_class_within_class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ such as::

That basically means that the loading prevents mocking and for each such
a loading initiator there needs to be implemented a workaround.
Overloading is one approach, however it polutes the global state. In this case
we try to completely avoid the global state polution with custom
Overloading is one approach, however it pollutes the global state. In this case
we try to completely avoid the global state pollution with custom
``new Class()`` behavior per loading initiator and that can be mocked easily
in few critical places.

Expand Down
2 changes: 1 addition & 1 deletion library/Mockery.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static function getContainer()
}

/**
* Setter for the $_generator static propery.
* Setter for the $_generator static property.
*
* @param \Mockery\Generator\Generator $generator
*/
Expand Down
2 changes: 1 addition & 1 deletion library/Mockery/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function setInternalClassMethodParamMap($class, $method, array $map)
}

/**
* Remove all overriden parameter maps from internal PHP classes.
* Remove all overridden parameter maps from internal PHP classes.
*/
public function resetInternalClassMethodParamMaps()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private function applyMagicTypeHints($code, Method $method)
}

/**
* Checks if the method is declared withing code.
* Checks if the method is declared within code.
*
* @param int $code
* @param Method $method
Expand Down
2 changes: 1 addition & 1 deletion library/Mockery/Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Mock implements MockInterface
protected $_mockery_expectations = array();

/**
* Stores an inital number of expectations that can be manipulated
* Stores an initial number of expectations that can be manipulated
* while using the getter method.
*
* @var int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function itShouldReturnEmptyArrayIfClassTypeIsNotExpected()
* Tests if the pass correclty replaces all the magic
* method parameters with those found in the
* Mock class. This is made to avoid variable
* conflicts withing Mock's magic methods
* conflicts within Mock's magic methods
* implementations.
*
* @test
Expand Down

0 comments on commit eca936d

Please sign in to comment.