ScriptFUSIONTest\Integration\Porter\PorterTest::testImportAndFilterCountableRecords PHP Method

testImportAndFilterCountableRecords() public method

Tests that when the resource is countable the count is lost when filtering is applied.
    public function testImportAndFilterCountableRecords()
    {
        $records = $this->porter->import((new StaticDataImportSpecification(new \ArrayIterator(range(1, $count = 10))))->setFilter([$this, __FUNCTION__]));
        // Innermost collection.
        self::assertInstanceOf(\Countable::class, $records->findFirstCollection());
        // Outermost collection.
        self::assertNotInstanceOf(\Countable::class, $records);
    }