We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6ed17 commit 65f0e4bCopy full SHA for 65f0e4b
tests/TDBMDaoGeneratorTest.php
@@ -961,6 +961,17 @@ public function testPageJsonEncode(): void
961
$this->assertCount(1, $msgDecoded);
962
}
963
964
+ /**
965
+ * @depends testDaoGeneration
966
+ */
967
+ public function testInnerResultIteratorCountAfterFetch(): void
968
+ {
969
+ $userDao = new TestUserDao($this->tdbmService);
970
+ $users = $userDao->getUsersByLoginStartingWith('j')->take(0, 4);
971
+ $users->toArray(); // We force to fetch
972
+ $this->assertEquals(3, $users->count());
973
+ }
974
+
975
/**
976
* @depends testDaoGeneration
977
*/
0 commit comments