88use Laminas \Db \TableGateway \Feature \MetadataFeature ;
99use Laminas \Db \TableGateway \TableGateway ;
1010use Laminas \Stdlib \ArrayObject ;
11+ use PHPUnit \Framework \Attributes ;
1112use PHPUnit \Framework \TestCase ;
1213use Webmozart \Assert \Assert ;
1314
1415use function count ;
1516
17+ #[Attributes \Group('integration ' )]
18+ #[Attributes \Group('integration-pdo ' )]
19+ #[Attributes \CoversClass(TableGateway::class)]
20+ #[Attributes \CoversMethod(TableGateway::class, '__construct ' )]
21+ #[Attributes \CoversMethod(TableGateway::class, 'select ' )]
22+ #[Attributes \CoversMethod(TableGateway::class, 'insert ' )]
23+ #[Attributes \CoversMethod(TableGateway::class, 'update ' )]
1624final class TableGatewayTest extends TestCase
1725{
1826 use AdapterTrait;
1927
20- /**
21- * @covers \Laminas\Db\TableGateway\TableGateway::__construct
22- */
2328 public function testConstructor (): void
2429 {
2530 $ tableGateway = new TableGateway ('test ' , $ this ->adapter );
2631 $ this ->assertInstanceOf (TableGateway::class, $ tableGateway );
2732 }
2833
29- /**
30- * @covers \Laminas\Db\TableGateway\TableGateway::select
31- */
3234 public function testSelect (): void
3335 {
3436 $ tableGateway = new TableGateway ('test ' , $ this ->adapter );
@@ -44,10 +46,6 @@ public function testSelect(): void
4446 }
4547 }
4648
47- /**
48- * @covers \Laminas\Db\TableGateway\TableGateway::insert
49- * @covers \Laminas\Db\TableGateway\TableGateway::select
50- */
5149 public function testInsert (): void
5250 {
5351 $ tableGateway = new TableGateway ('test ' , $ this ->adapter );
@@ -90,9 +88,9 @@ public function testInsertWithExtendedCharsetFieldName(): int
9088 }
9189
9290 /**
93- * @depends testInsertWithExtendedCharsetFieldName
9491 * @param mixed $id
9592 */
93+ #[Attributes \Depends('testInsertWithExtendedCharsetFieldName ' )]
9694 public function testUpdateWithExtendedCharsetFieldName ($ id ): void
9795 {
9896 Assert::isInstanceOf ($ this ->adapter , AdapterInterface::class);
@@ -116,9 +114,9 @@ public function testUpdateWithExtendedCharsetFieldName($id): void
116114 }
117115
118116 /**
119- * @dataProvider tableProvider
120117 * @param string|TableIdentifier|array $table
121118 */
119+ #[Attributes \DataProvider('tableProvider ' )]
122120 public function testTableGatewayWithMetadataFeature ($ table ): void
123121 {
124122 Assert::isInstanceOf ($ this ->adapter , AdapterInterface::class);
@@ -130,7 +128,6 @@ public function testTableGatewayWithMetadataFeature($table): void
130128
131129 /**
132130 * @psalm-return array<array-key, array{0: string|TableIdentifier|array}>
133- *
134131 * */
135132 public static function tableProvider (): array
136133 {
0 commit comments