composer update
This commit is contained in:
5
vendor/phpspec/phpspec/CHANGES-v4.md
vendored
5
vendor/phpspec/phpspec/CHANGES-v4.md
vendored
@@ -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
|
||||
==================
|
||||
|
||||
|
1
vendor/phpspec/phpspec/CHANGES.md
vendored
1
vendor/phpspec/phpspec/CHANGES.md
vendored
@@ -1 +0,0 @@
|
||||
CHANGES-v4.md
|
1
vendor/phpspec/phpspec/CHANGES.md
vendored
Symbolic link
1
vendor/phpspec/phpspec/CHANGES.md
vendored
Symbolic link
@@ -0,0 +1 @@
|
||||
CHANGES-v4.md
|
2
vendor/phpspec/phpspec/bin/phpspec
vendored
Normal file → Executable file
2
vendor/phpspec/phpspec/bin/phpspec
vendored
Normal file → Executable file
@@ -24,4 +24,4 @@
|
||||
|
||||
(new PhpSpec\Console\Application($version))->run();
|
||||
|
||||
})('4.3.1');
|
||||
})('4.3.2');
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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:
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user