composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -1,3 +1,8 @@
4.3.2 / 2018-09-24
==================
* [fixed] Better error message when trying to call method on scalar return type (@ciaranmcnulty)
4.3.1 / 2018-07-02
==================

View File

@@ -1 +0,0 @@
CHANGES-v4.md

1
vendor/phpspec/phpspec/CHANGES.md vendored Symbolic link
View File

@@ -0,0 +1 @@
CHANGES-v4.md

2
vendor/phpspec/phpspec/bin/phpspec vendored Normal file → Executable file
View File

@@ -24,4 +24,4 @@
(new PhpSpec\Console\Application($version))->run();
})('4.3.1');
})('4.3.2');

View File

@@ -192,6 +192,24 @@ class ApplicationContext implements Context
}
}
/**
* @Then I should see the error that :methodCall was not expected on :class
*/
public function iShouldSeeTheErrorThatWasNotExpectedOn($methodCall, $class)
{
$this->checkApplicationOutput((string)$methodCall);
$this->checkApplicationOutput((string)$this->normalize($class));
$output = $this->tester->getDisplay();
$containsOldProphecyMessage = strpos($output, 'was not expected') !== false;
$containsNewProphecyMessage = strpos($output, 'Unexpected method call') !== false;
if (!$containsOldProphecyMessage && !$containsNewProphecyMessage) {
throw new \Exception('Was expecting error message about an unexpected method call');
}
}
/**
* @Then I should not be prompted for code generation
*/

View File

@@ -392,13 +392,7 @@ Feature: Developer is shown diffs
}
"""
When I run phpspec with the "verbose" option
Then I should see:
"""
method call:
- methodTwo("value")
on Double\Diffs\DiffExample7\ClassBeingMocked\P13 was not expected, expected calls were:
- methodOne(exact("value"))
"""
Then I should see the error that 'methodTwo("value")' was not expected on "Double\Diffs\DiffExample7\ClassBeingMocked\P13"
Scenario: Unexpected method call when another prophecy for that call with not matching arguments exists
Given the spec file "spec/Diffs/DiffExample8/ClassUnderSpecificationSpec.php" contains:
@@ -456,14 +450,7 @@ Feature: Developer is shown diffs
}
"""
When I run phpspec with the "verbose" option
Then I should see:
"""
method call:
- methodTwo("another value")
on Double\Diffs\DiffExample8\ClassBeingMocked\P14 was not expected, expected calls were:
- methodTwo(exact("value"))
- methodOne(exact("another value"))
"""
Then I should see the error that 'methodTwo("another value")' was not expected on "Double\Diffs\DiffExample8\ClassBeingMocked\P14"
Scenario: Array diffing with long strings
Given the spec file "spec/Diffs/DiffExample9/ClassWithArraysSpec.php" contains:

View File

@@ -87,7 +87,7 @@ class Caller
*/
public function call(string $method, array $arguments = array()): Subject
{
if (null === $this->getWrappedObject()) {
if (!is_object($this->getWrappedObject())) {
throw $this->callingMethodOnNonObject($method);
}