The method PHPUnit\Framework\MockOb...ckBuilder::setMethods() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/pull/3687
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be
removed from the class and what other method or class to use instead.
Loading history...
36
->disableOriginalConstructor()
37
->setMethods( [ 'exists' ] )
38
->getMock();
39
$title->expects( $this->any() )
40
->method( 'exists' )
41
->will( $this->returnValue( false ) );
42
43
return [
44
[
45
'value' => null,
46
'hasToExist' => false,
47
'expectedErrors' => Error::newError( 'Not a title' )
48
],
49
[
50
'value' => $title,
51
'hasToExist' => false,
52
'expectedErrors' => null
53
],
54
[
55
'value' => $title,
56
'hasToExist' => true,
57
'expectedErrors' => Error::newError( 'Title does not exist' )
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.