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()); }