Skip to content

Commit 6586a98

Browse files
committed
test: Mock complete interface
1 parent ce23a0f commit 6586a98

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Uri/UriRetrieverTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function testResolveExcessLevelUp()
235235

236236
public function testConfirmMediaTypeAcceptsJsonSchemaType()
237237
{
238-
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
238+
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
239239
$retriever = new UriRetriever();
240240

241241
$uriRetriever->expects($this->at(0))
@@ -247,7 +247,7 @@ public function testConfirmMediaTypeAcceptsJsonSchemaType()
247247

248248
public function testConfirmMediaTypeAcceptsJsonType()
249249
{
250-
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
250+
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
251251
$retriever = new UriRetriever();
252252

253253
$uriRetriever->expects($this->at(0))
@@ -262,7 +262,7 @@ public function testConfirmMediaTypeAcceptsJsonType()
262262
*/
263263
public function testConfirmMediaTypeThrowsExceptionForUnsupportedTypes()
264264
{
265-
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
265+
$uriRetriever = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
266266
$retriever = new UriRetriever();
267267

268268
$uriRetriever->expects($this->at(0))
@@ -335,7 +335,7 @@ public function testRetrieveSchemaFromPackage()
335335

336336
public function testInvalidContentTypeEndpointsDefault()
337337
{
338-
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
338+
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
339339
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');
340340
$retriever = new UriRetriever();
341341

@@ -348,7 +348,7 @@ public function testInvalidContentTypeEndpointsDefault()
348348
*/
349349
public function testInvalidContentTypeEndpointsUnknown()
350350
{
351-
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
351+
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
352352
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');
353353
$retriever = new UriRetriever();
354354

@@ -357,7 +357,7 @@ public function testInvalidContentTypeEndpointsUnknown()
357357

358358
public function testInvalidContentTypeEndpointsAdded()
359359
{
360-
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface', array('getContentType'));
360+
$mock = $this->getMock('JsonSchema\Uri\Retrievers\UriRetrieverInterface');
361361
$mock->method('getContentType')->willReturn('Application/X-Fake-Type');
362362
$retriever = new UriRetriever();
363363
$retriever->addInvalidContentTypeEndpoint('http://example.com');

0 commit comments

Comments
 (0)