getPdo()->exec( " CREATE TABLE SimpleEntity ( stringcol VARCHAR(250), intcol INTEGER PRIMARY KEY AUTOINCREMENT ); INSERT INTO SimpleEntity(stringcol, intcol) VALUES ('dings', 1), ('bumms', 2); " ); } #[Group('integration')] public function testSelectsData(): void { // Given $strategy = new SaveEntity(); $method = new RepositoryMethod( query: '', returnType: '', returnsNullable: true, returnListType: '', name: '', parameters: [ new RepositoryMethodParameter( name: '', type: SimpleEntity::class, function: ParameterFunction::STATEMENT_PARAMETER ) ], resolutionStrategy: $strategy ); $entity = new SimpleEntity(null, 'foobar'); $query = $method->createQuery([$entity]); // When $result = $query->execute($this->getPdo()); // Then $this->assertInstanceOf(SimpleEntity::class, $result); $this->assertNotNull($result->intcol); } }