=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== php-mockery-1.4.2/CHANGELOG.md-111-* BC BREAK - Mockery's PHPUnit integration will mark a test as risky if it php-mockery-1.4.2/CHANGELOG.md:112: thinks one it's exceptions has been swallowed in PHPUnit > 5.7.6. Use `$e->dismiss()` to dismiss. php-mockery-1.4.2/CHANGELOG.md-113- ############################################## php-mockery-1.4.2/CHANGELOG.md-142- `Mockery\Configuration::allowMockingNonExistentMethods(false)` with php-mockery-1.4.2/CHANGELOG.md:143: `Mockery\MockInterface::shouldAllowMockingMethod($methodName)` php-mockery-1.4.2/CHANGELOG.md:144:* Added andReturnSelf method: `$mock->shouldReceive("foo")->andReturnSelf()` php-mockery-1.4.2/CHANGELOG.md-145-* `shouldIgnoreMissing` now takes an optional value that will be return instead php-mockery-1.4.2/CHANGELOG.md:146: of null, e.g. `$mock->shouldIgnoreMissing($mock)` php-mockery-1.4.2/CHANGELOG.md-147- ############################################## php-mockery-1.4.2/docs/cookbook/mockery_on.rst-67-The important part of the example is inside the closure we pass to the php-mockery-1.4.2/docs/cookbook/mockery_on.rst:68:``\Mockery::on()`` matcher. The ``$argument`` is actually the ``$saveData`` argument php-mockery-1.4.2/docs/cookbook/mockery_on.rst-69-the ``save()`` method gets when it is called. We check for a couple of things in ############################################## php-mockery-1.4.2/docs/reference/argument_validation.rst-33- through the ``\Hamcrest\Matchers`` class as well, as static methods. Thus, php-mockery-1.4.2/docs/reference/argument_validation.rst:34: ``identicalTo($arg)`` is the same as ``\Hamcrest\Matchers::identicalTo($arg)`` php-mockery-1.4.2/docs/reference/argument_validation.rst-35- ############################################## php-mockery-1.4.2/docs/reference/argument_validation.rst-50-When matching objects as arguments, Mockery only does the strict ``===`` php-mockery-1.4.2/docs/reference/argument_validation.rst:51:comparison, which means only the same ``$object`` will match: php-mockery-1.4.2/docs/reference/argument_validation.rst-52- ############################################## php-mockery-1.4.2/docs/reference/argument_validation.rst-244- php-mockery-1.4.2/docs/reference/argument_validation.rst:245:This will assign *any* argument passed to ``foo`` to the local ``$bar`` variable to php-mockery-1.4.2/docs/reference/argument_validation.rst-246-then perform additional validation using assertions. ############################################## php-mockery-1.4.2/docs/reference/creating_test_doubles.rst-315-new instances of that class will import any expectations set on the origin php-mockery-1.4.2/docs/reference/creating_test_doubles.rst:316:mock (``$mock``). The origin mock is never verified since it's used an php-mockery-1.4.2/docs/reference/creating_test_doubles.rst-317-expectation store for new instances. For this purpose we use the term "instance ############################################## php-mockery-1.4.2/docs/reference/creating_test_doubles.rst-382- php-mockery-1.4.2/docs/reference/creating_test_doubles.rst:383:Mockery now knows to pass in ``$constructorArg1`` and ``$constructorArg2`` as php-mockery-1.4.2/docs/reference/creating_test_doubles.rst-384-arguments to the constructor. ############################################## php-mockery-1.4.2/docs/reference/expectations.rst-211- php-mockery-1.4.2/docs/reference/expectations.rst:212:The first call will return ``$value1`` and the second call will return ``$value2``. php-mockery-1.4.2/docs/reference/expectations.rst-213- ############################################## php-mockery-1.4.2/docs/reference/expectations.rst-333-In cases where we want to call the real method of the class that was mocked and php-mockery-1.4.2/docs/reference/expectations.rst:334:return its result, the ``passthru()`` method tells the expectation to bypass php-mockery-1.4.2/docs/reference/expectations.rst-335-a return queue: ############################################## php-mockery-1.4.2/docs/reference/expectations.rst-338- php-mockery-1.4.2/docs/reference/expectations.rst:339: passthru() php-mockery-1.4.2/docs/reference/expectations.rst-340- ############################################## php-mockery-1.4.2/docs/reference/expectations.rst-379- php-mockery-1.4.2/docs/reference/expectations.rst:380:where ``$n`` is the number of times the method should be called. php-mockery-1.4.2/docs/reference/expectations.rst-381- ############################################## php-mockery-1.4.2/docs/reference/expectations.rst-446- php-mockery-1.4.2/docs/reference/expectations.rst:447:This is actually identical to using ``atLeast()->times($min)->atMost()->times($max)`` php-mockery-1.4.2/docs/reference/expectations.rst-448-but is provided as a shorthand. It may be followed by a ``times()`` call with no ############################################## php-mockery-1.4.2/docs/reference/partial_mocks.rst-96-All mock objects, with the exception of Proxied Partials, allows us to make php-mockery-1.4.2/docs/reference/partial_mocks.rst:97:any expectation call to the underlying real class method using the ``passthru()`` php-mockery-1.4.2/docs/reference/partial_mocks.rst-98-expectation call. This will return values from the real call and bypass any ############################################## php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst-28- php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst:29:In the example above, the variable ``$baz`` is passed by reference to php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst-30-``Foo::bar()`` (notice the ``&`` symbol in front of the parameter?). Any php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst-31-change ``bar()`` makes to the parameter reference is reflected in the original php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst:32:variable, ``$baz``. php-mockery-1.4.2/docs/reference/pass_by_reference_behaviours.rst-33- ############################################## php-mockery-1.4.2/library/Mockery/Expectation.php-874- */ php-mockery-1.4.2/library/Mockery/Expectation.php:875: public function passthru() php-mockery-1.4.2/library/Mockery/Expectation.php-876- { ############################################## php-mockery-1.4.2/library/Mockery/Loader/EvalLoader.php-33- php-mockery-1.4.2/library/Mockery/Loader/EvalLoader.php:34: eval("?>" . $definition->getCode()); php-mockery-1.4.2/library/Mockery/Loader/EvalLoader.php-35- } ############################################## php-mockery-1.4.2/tests/Mockery/ExpectationTest.php-1984- $mock = mock('MockeryTest_SubjectCall1'); php-mockery-1.4.2/tests/Mockery/ExpectationTest.php:1985: $mock->shouldReceive('foo')->once()->passthru(); php-mockery-1.4.2/tests/Mockery/ExpectationTest.php-1986- $this->assertEquals('bar', $mock->foo()); ############################################## php-mockery-1.4.2/tests/Mockery/ExpectationTest.php-1991- $mock = mock('Mockery_Magic'); php-mockery-1.4.2/tests/Mockery/ExpectationTest.php:1992: $mock->shouldReceive('theAnswer')->once()->passthru(); php-mockery-1.4.2/tests/Mockery/ExpectationTest.php-1993- $this->assertSame(42, $mock->theAnswer()); ############################################## php-mockery-1.4.2/tests/Mockery/MockTest.php-115- assertThat(nullValue($mock->foo())); php-mockery-1.4.2/tests/Mockery/MockTest.php:116: $mock->shouldReceive('bar')->passthru(); php-mockery-1.4.2/tests/Mockery/MockTest.php-117- assertThat($mock->bar(), equalTo('bar')); ############################################## php-mockery-1.4.2/tests/Mockery/MockTest.php-128- $mock->shouldReceive(array('foo' => 'new_foo', 'nonExistentMethod' => 'result')); php-mockery-1.4.2/tests/Mockery/MockTest.php:129: $mock->shouldReceive('bar')->passthru(); php-mockery-1.4.2/tests/Mockery/MockTest.php-130- assertThat($mock->foo(), equalTo('new_foo'));