Skip to content

Commit 1d3c58c

Browse files
committed
Removed VerifyClass
because it used methods removed from PHPUnit 10
1 parent 2f8f5ce commit 1d3c58c

File tree

3 files changed

+0
-101
lines changed

3 files changed

+0
-101
lines changed

src/Codeception/Verify/Verifiers/VerifyClass.php

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/Codeception/Verify/Verify.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use ArrayAccess;
88
use Codeception\Verify\Verifiers\VerifyArray;
99
use Codeception\Verify\Verifiers\VerifyCallable;
10-
use Codeception\Verify\Verifiers\VerifyClass;
1110
use Codeception\Verify\Verifiers\VerifyDirectory;
1211
use Codeception\Verify\Verifiers\VerifyFile;
1312
use Codeception\Verify\Verifiers\VerifyJsonFile;
@@ -73,11 +72,6 @@ public static function BaseObject(object $object): VerifyBaseObject
7372
return new VerifyBaseObject($object);
7473
}
7574

76-
public static function Class(string $className): VerifyClass
77-
{
78-
return new VerifyClass($className);
79-
}
80-
8175
public static function Directory(string $directory): VerifyDirectory
8276
{
8377
return new VerifyDirectory($directory);

tests/VerifyTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,28 +82,6 @@ public function testIsInstanceOf(): void
8282
verify($testClass)->notInstanceOf(DateTimeZone::class);
8383
}
8484

85-
public function testHasAttribute(): void
86-
{
87-
if (Version::series() <= 10) {
88-
$this->markTestIncomplete('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11.');
89-
}
90-
verify('Exception')->classHasAttribute('message');
91-
verify('Exception')->classNotHasAttribute('fakeproperty');
92-
93-
$testObject = (object) ['existingAttribute' => true];
94-
verify($testObject)->baseObjectHasAttribute('existingAttribute');
95-
verify($testObject)->baseObjectNotHasAttribute('fakeproperty');
96-
}
97-
98-
public function testHasStaticAttribute(): void
99-
{
100-
if (Version::series() <= 10) {
101-
$this->markTestIncomplete('assertClassHasAttribute() is deprecated and will be removed in PHPUnit 11.');
102-
}
103-
verify('FakeClassForTesting')->classHasStaticAttribute('staticProperty');
104-
verify('FakeClassForTesting')->classNotHasStaticAttribute('fakeProperty');
105-
}
106-
10785
public function testContainsOnly(): void
10886
{
10987
verify(['1', '2', '3'])->arrayContainsOnly('string');

0 commit comments

Comments
 (0)