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())->execute( method: new RepositoryMethod( query: '', returnType: '', returnListType: SimpleEntity::class, name: '', parameters: [], resolutionStrategy: new FindAll() ), parameters: [] ); // When $result = $query->execute->__invoke($this->pdo); // Then $this->assertNotEmpty($result); } }