From eaf2efe5dbe08d49e674a904aed46b05f75a02bd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 22 Jan 2018 11:10:49 +0100 Subject: Update to 1.0 rename to php-mockery and move to /usr/share/php/Mockery1 raise dependency on PHP 5.6 raise dependency on hamcrest/hamcrest-php 2.0 use phpunit6 on F26+ --- 798.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 798.patch (limited to '798.patch') diff --git a/798.patch b/798.patch new file mode 100644 index 0000000..f0e29fb --- /dev/null +++ b/798.patch @@ -0,0 +1,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()); + } + -- cgit