Skip to content

Commit

Permalink
move test
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 28, 2024
1 parent ef2809c commit b5e5dd1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
1 change: 0 additions & 1 deletion tests/default/DbaInferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function dataFileAsserts(): iterable

yield from $this->gatherAssertTypes(__DIR__ . '/data/doctrine-dbal.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/inference-placeholder.php');
yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-680.php');
}

// make sure class constants can be resolved
Expand Down
23 changes: 0 additions & 23 deletions tests/default/data/bug-680.php

This file was deleted.

11 changes: 11 additions & 0 deletions tests/default/data/doctrine-dbal.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,15 @@ public function customTypeParameters(Connection $conn)
);
assertType('Doctrine\DBAL\Result', $result);
}

public function doFoo(Connection $conn, string $token): void
{
$content = $conn
->fetchAssociative(
'#cart-persister::load
SELECT email, adaid FROM ada WHERE adaid = :token',
['token' => $token],
);
assertType('array{email: string, adaid: int<-32768, 32767>}|false', $content);
}
}

0 comments on commit b5e5dd1

Please sign in to comment.