refactor(php): use self::markTestIncomplete instead of instance calls (#17824)

It's reported by phpstan as `Dynamic call to static method PHPUnit\Framework\Assert::markTestIncomplete().`.

The method is static, therefore it should not be called from instance context.
This commit is contained in:
Simon Podlipsky
2024-02-12 08:48:44 +01:00
committed by GitHub
parent cd23dfd3ce
commit f3ac4498df
203 changed files with 790 additions and 790 deletions

View File

@@ -77,7 +77,7 @@ class PetTest extends TestCase
public function testPet()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -86,7 +86,7 @@ class PetTest extends TestCase
public function testPropertyId()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -95,7 +95,7 @@ class PetTest extends TestCase
public function testPropertyName()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -104,7 +104,7 @@ class PetTest extends TestCase
public function testPropertyCategory()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -113,7 +113,7 @@ class PetTest extends TestCase
public function testPropertyPhotoUrls()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -122,7 +122,7 @@ class PetTest extends TestCase
public function testPropertyTags()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
/**
@@ -131,6 +131,6 @@ class PetTest extends TestCase
public function testPropertyStatus()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
self::markTestIncomplete('Not implemented');
}
}