pdo = new \PDO("sqlite:/$tmpfile"); $this->pdo->exec( " CREATE TABLE SimpleEntity ( stringcol VARCHAR(250), intcol INT ); INSERT INTO SimpleEntity(stringcol, intcol) VALUES ('dings', 1), ('bumms', 2); " ); } #[Group('integration')] public function testSelectsData(): void { // Given $query = (new FindAll())->createQuery( method: new RepositoryMethod( query: '', returnType: '', returnListType: SimpleEntity::class, name: '', parameters: [], resolutionStrategy: new FindAll() ), parameters: [] ); // When $result = $query->execute($this->pdo); // Then $this->assertNotEmpty($result); $this->assertEquals( [ new SimpleEntity(1, 'dings'), new SimpleEntity(2, 'bumms') ], $result ); } }