diff options
author | Remi Collet <remi@remirepo.net> | 2018-01-22 11:10:49 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-01-22 11:10:49 +0100 |
commit | eaf2efe5dbe08d49e674a904aed46b05f75a02bd (patch) | |
tree | 1e0e70f148c0bd5845b2c70ba2208d3992ef3378 /798.patch | |
parent | d30532646e05be2d361348ba6287e51346e2069f (diff) |
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+
Diffstat (limited to '798.patch')
-rw-r--r-- | 798.patch | 47 |
1 files changed, 47 insertions, 0 deletions
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()); + } + |