Skip to content

Commit

Permalink
LunrBaseTest: Drop warnings for uopz 6
Browse files Browse the repository at this point in the history
We're already requiring version 7.1

Reviewed at https://reviews.lunr.nl/r/1129/
  • Loading branch information
pprkut committed Mar 21, 2024
1 parent 9192760 commit 08905df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/Lunr/Halo/Tests/LegacyBaseTestMockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ public function testUnmockMethod(): void
*/
public function testUnmockMethodFromObject(): void
{
if (phpversion('uopz')[0] < 6)
{
$this->markTestSkipped('This functionality requires uopz >= 6.0.x to work correctly');
}

$this->mock_method([ $this->class, 'baz' ], function () { return 'Nope!'; });

$this->assertEquals('Nope!', $this->class->baz());
Expand All @@ -138,11 +133,6 @@ public function testUnmockMethodFromObject(): void
*/
public function testUnmockMethodFromParent(): void
{
if (phpversion('uopz')[0] < 6)
{
$this->markTestSkipped('This functionality requires uopz >= 6.0.x to work correctly');
}

$this->mock_method([ $this->child_class, 'baz' ], function () { return 'Nope!'; });

$this->assertEquals('Nope!', $this->class->baz());
Expand Down
10 changes: 0 additions & 10 deletions src/Lunr/Halo/Tests/LunrBaseTestMockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ public function testUnmockMethod(): void
*/
public function testUnmockMethodFromObject(): void
{
if (phpversion('uopz')[0] < 6)
{
$this->markTestSkipped('This functionality requires uopz >= 6.0.x to work correctly');
}

$this->mock_method([ $this->class, 'baz' ], function () { return 'Nope!'; });

$this->assertEquals('Nope!', $this->class->baz());
Expand All @@ -138,11 +133,6 @@ public function testUnmockMethodFromObject(): void
*/
public function testUnmockMethodFromParent(): void
{
if (phpversion('uopz')[0] < 6)
{
$this->markTestSkipped('This functionality requires uopz >= 6.0.x to work correctly');
}

$this->mock_method([ $this->child_class, 'baz' ], function () { return 'Nope!'; });

$this->assertEquals('Nope!', $this->class->baz());
Expand Down

0 comments on commit 08905df

Please sign in to comment.