Skip to content

Commit

Permalink
Delete test that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 27, 2024
1 parent 19dbc01 commit 1a4ab3c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/unit/Framework/MockObject/Creation/MockBuilderTest.php
Expand Up @@ -72,21 +72,4 @@ public function testCreatesPartialMockObjectForExtendableClass(): void

$this->assertTrue($double->doSomething());
}

#[IgnorePhpunitDeprecations]
#[TestDox('allowMockingUnknownTypes() can be used to allow mocking of unknown types')]
public function testCreatesMockObjectForUnknownType(): void
{
$type = 'Type_' . substr(md5((string) mt_rand()), 0, 8);

assert(!class_exists($type) && !interface_exists($type) && !trait_exists($type));

$double = $this->getMockBuilder($type)
->allowMockingUnknownTypes()
->getMock();

$this->assertInstanceOf($type, $double);
$this->assertInstanceOf(MockObject::class, $double);

}
}

0 comments on commit 1a4ab3c

Please sign in to comment.