Skip to content

Commit 4b4b23c

Browse files
Merge branch '2.0'
2 parents 3ba8622 + 3697daa commit 4b4b23c

25 files changed

+25
-0
lines changed

src/Framework/MockObject/Generator/mocked_class.tpl.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
public function __phpunit_verify()
3232
{
3333
$this->__phpunit_getInvocationMocker()->verify();
34+
$this->__phpunit_invocationMocker = NULL;
3435
}
3536
}{epilogue}

tests/MockObject/class.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
116116
public function __phpunit_verify()
117117
{
118118
$this->__phpunit_getInvocationMocker()->verify();
119+
$this->__phpunit_invocationMocker = NULL;
119120
}
120121
}

tests/MockObject/class_call_parent_clone.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
6868
public function __phpunit_verify()
6969
{
7070
$this->__phpunit_getInvocationMocker()->verify();
71+
$this->__phpunit_invocationMocker = NULL;
7172
}
7273
}

tests/MockObject/class_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
6767
public function __phpunit_verify()
6868
{
6969
$this->__phpunit_getInvocationMocker()->verify();
70+
$this->__phpunit_invocationMocker = NULL;
7071
}
7172
}

tests/MockObject/class_dont_call_parent_clone.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
6767
public function __phpunit_verify()
6868
{
6969
$this->__phpunit_getInvocationMocker()->verify();
70+
$this->__phpunit_invocationMocker = NULL;
7071
}
7172
}

tests/MockObject/class_dont_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
6767
public function __phpunit_verify()
6868
{
6969
$this->__phpunit_getInvocationMocker()->verify();
70+
$this->__phpunit_invocationMocker = NULL;
7071
}
7172
}

tests/MockObject/class_implementing_interface_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
7272
public function __phpunit_verify()
7373
{
7474
$this->__phpunit_getInvocationMocker()->verify();
75+
$this->__phpunit_invocationMocker = NULL;
7576
}
7677
}

tests/MockObject/class_implementing_interface_dont_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
7272
public function __phpunit_verify()
7373
{
7474
$this->__phpunit_getInvocationMocker()->verify();
75+
$this->__phpunit_invocationMocker = NULL;
7576
}
7677
}

tests/MockObject/class_partial.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
9494
public function __phpunit_verify()
9595
{
9696
$this->__phpunit_getInvocationMocker()->verify();
97+
$this->__phpunit_invocationMocker = NULL;
9798
}
9899
}

tests/MockObject/class_with_method_named_method.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
8383
public function __phpunit_verify()
8484
{
8585
$this->__phpunit_getInvocationMocker()->verify();
86+
$this->__phpunit_invocationMocker = NULL;
8687
}
8788
}

tests/MockObject/interface.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,6 @@ class MockFoo implements PHPUnit_Framework_MockObject_MockObject, Foo
8888
public function __phpunit_verify()
8989
{
9090
$this->__phpunit_getInvocationMocker()->verify();
91+
$this->__phpunit_invocationMocker = NULL;
9192
}
9293
}

tests/MockObject/invocation_object_clone_object.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
117117
public function __phpunit_verify()
118118
{
119119
$this->__phpunit_getInvocationMocker()->verify();
120+
$this->__phpunit_invocationMocker = NULL;
120121
}
121122
}

tests/MockObject/namespaced_class.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
118118
public function __phpunit_verify()
119119
{
120120
$this->__phpunit_getInvocationMocker()->verify();
121+
$this->__phpunit_invocationMocker = NULL;
121122
}
122123
}

tests/MockObject/namespaced_class_call_parent_clone.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
7070
public function __phpunit_verify()
7171
{
7272
$this->__phpunit_getInvocationMocker()->verify();
73+
$this->__phpunit_invocationMocker = NULL;
7374
}
7475
}

tests/MockObject/namespaced_class_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
6969
public function __phpunit_verify()
7070
{
7171
$this->__phpunit_getInvocationMocker()->verify();
72+
$this->__phpunit_invocationMocker = NULL;
7273
}
7374
}

tests/MockObject/namespaced_class_dont_call_parent_clone.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
6969
public function __phpunit_verify()
7070
{
7171
$this->__phpunit_getInvocationMocker()->verify();
72+
$this->__phpunit_invocationMocker = NULL;
7273
}
7374
}

tests/MockObject/namespaced_class_dont_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
6969
public function __phpunit_verify()
7070
{
7171
$this->__phpunit_getInvocationMocker()->verify();
72+
$this->__phpunit_invocationMocker = NULL;
7273
}
7374
}

tests/MockObject/namespaced_class_implementing_interface_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
7474
public function __phpunit_verify()
7575
{
7676
$this->__phpunit_getInvocationMocker()->verify();
77+
$this->__phpunit_invocationMocker = NULL;
7778
}
7879
}

tests/MockObject/namespaced_class_implementing_interface_dont_call_parent_constructor.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
7474
public function __phpunit_verify()
7575
{
7676
$this->__phpunit_getInvocationMocker()->verify();
77+
$this->__phpunit_invocationMocker = NULL;
7778
}
7879
}

tests/MockObject/namespaced_class_partial.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,6 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
9696
public function __phpunit_verify()
9797
{
9898
$this->__phpunit_getInvocationMocker()->verify();
99+
$this->__phpunit_invocationMocker = NULL;
99100
}
100101
}

tests/MockObject/namespaced_interface.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,6 @@ class MockFoo implements PHPUnit_Framework_MockObject_MockObject, NS\Foo
9090
public function __phpunit_verify()
9191
{
9292
$this->__phpunit_getInvocationMocker()->verify();
93+
$this->__phpunit_invocationMocker = NULL;
9394
}
9495
}

tests/MockObject/nonexistent_class.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ class MockFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
6565
public function __phpunit_verify()
6666
{
6767
$this->__phpunit_getInvocationMocker()->verify();
68+
$this->__phpunit_invocationMocker = NULL;
6869
}
6970
}

tests/MockObject/nonexistent_class_with_namespace.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
7171
public function __phpunit_verify()
7272
{
7373
$this->__phpunit_getInvocationMocker()->verify();
74+
$this->__phpunit_invocationMocker = NULL;
7475
}
7576
}
7677

tests/MockObject/nonexistent_class_with_namespace_starting_with_separator.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class MockFoo extends NS\Foo implements PHPUnit_Framework_MockObject_MockObject
7171
public function __phpunit_verify()
7272
{
7373
$this->__phpunit_getInvocationMocker()->verify();
74+
$this->__phpunit_invocationMocker = NULL;
7475
}
7576
}
7677

tests/MockObject/proxy.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ class ProxyFoo extends Foo implements PHPUnit_Framework_MockObject_MockObject
112112
public function __phpunit_verify()
113113
{
114114
$this->__phpunit_getInvocationMocker()->verify();
115+
$this->__phpunit_invocationMocker = NULL;
115116
}
116117
}

0 commit comments

Comments
 (0)