Skip to content

Commit

Permalink
Add type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 27, 2018
1 parent adcd0cc commit 9baeda7
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Generator/mocked_class.tpl.dist
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/232.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Issue3154Mock extends Is\Namespaced\Issue3154 implements PHPUnit\Framework
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/397.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class MockC extends C implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/class.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/class_partial.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MockFoo extends ClassWithDeprecatedMethod implements PHPUnit\Framework\Moc
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MockFoo extends ClassWithFinalMethod implements PHPUnit\Framework\MockObje
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends ClassWithMethodWithNullableTypehintedVariadicArguments imp
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends ClassWithMethodWithTypehintedVariadicArguments implements
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends ClassWithMethodWithVariadicArguments implements PHPUnit\Fr
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/interface.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, NS\Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MockFoo extends NonExistentClass implements PHPUnit\Framework\MockObject\M
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MockFoo extends NS\Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
2 changes: 1 addition & 1 deletion tests/end-to-end/mock-objects/generator/proxy.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ProxyFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class MockFoo extends Foo implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MockBar extends Bar implements PHPUnit\Framework\MockObject\MockObject
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MockFoo implements PHPUnit\Framework\MockObject\MockObject, Foo
return $this->__phpunit_getInvocationMocker()->hasMatchers();
}

public function __phpunit_verify($unsetInvocationMocker = true)
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
$this->__phpunit_getInvocationMocker()->verify();

Expand Down
Loading

0 comments on commit 9baeda7

Please sign in to comment.