1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
diff -up tests/Mockery/DemeterChainTest.php.test tests/Mockery/DemeterChainTest.php
diff -up tests/Mockery/ExpectationTest.php.test tests/Mockery/ExpectationTest.php
--- tests/Mockery/ExpectationTest.php.test 2017-10-06 18:20:43.000000000 +0200
+++ tests/Mockery/ExpectationTest.php 2018-01-22 10:42:30.193764672 +0100
@@ -1309,14 +1309,14 @@ class ExpectationTest extends MockeryTes
public function testObjectConstraintMatchesArgument()
{
- $this->mock->shouldReceive('foo')->with(Mockery::type('object'))->once();
+ $this->mock->shouldReceive('foo')->with(Mockery::type('stdClass'))->once();
$this->mock->foo(new stdClass);
}
public function testObjectConstraintNonMatchingCase()
{
$this->mock->shouldReceive('foo')->times(3);
- $this->mock->shouldReceive('foo')->with(1, Mockery::type('object`'))->never();
+ $this->mock->shouldReceive('foo')->with(1, Mockery::type('stdClass`'))->never();
$this->mock->foo();
$this->mock->foo(1);
$this->mock->foo(1, 2, 3);
@@ -1327,7 +1327,7 @@ class ExpectationTest extends MockeryTes
*/
public function testObjectConstraintThrowsExceptionWhenConstraintUnmatched()
{
- $this->mock->shouldReceive('foo')->with(Mockery::type('object'));
+ $this->mock->shouldReceive('foo')->with(Mockery::type('stdClass'));
$this->mock->foo('f');
Mockery::close();
}
diff -up tests/Mockery/NamedMockTest.php.test tests/Mockery/NamedMockTest.php
--- tests/Mockery/NamedMockTest.php.test 2017-10-06 18:20:43.000000000 +0200
+++ tests/Mockery/NamedMockTest.php 2018-01-22 10:40:50.894254568 +0100
@@ -35,11 +35,11 @@ class NamedMockTest extends MockeryTestC
/** @test */
public function itCreatesPassesFurtherArgumentsJustLikeMock()
{
- $mock = Mockery::namedMock("Mockery\Dave456", "DateTime", array(
+ $mock = Mockery::namedMock("Mockery\Dave456", "DateTimeZone", array(
"getDave" => "dave"
));
- $this->assertInstanceOf("DateTime", $mock);
+ $this->assertInstanceOf("DateTimeZone", $mock);
$this->assertEquals("dave", $mock->getDave());
}
|