File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77use ArrayAccess ;
88use Codeception \Verify \Verifiers \VerifyArray ;
99use Codeception \Verify \Verifiers \VerifyCallable ;
10- use Codeception \Verify \Verifiers \VerifyClass ;
1110use Codeception \Verify \Verifiers \VerifyDirectory ;
1211use Codeception \Verify \Verifiers \VerifyFile ;
1312use 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 );
Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments