src/Codeception/Module/WPQueries.php
public function _getFilteredQueriesIterator($wpdb = null)
    {
        if (null === $wpdb) {
            $wpdb = $this->getWpdbInstance();
        }

        $queriesArrayIterator = new \ArrayIterator($wpdb->queries);
        $filteredQueriesIterator = new SetupTearDownQueriesFilter(new FactoryQueriesFilter($queriesArrayIterator));

        return $filteredQueriesIterator;
    }
public function _getFilteredQueriesIterator($wpdb = null)
    {
        if (null === $wpdb) {
            $wpdb = $this->getWpdbInstance();
        }

        $queriesArrayIterator = new \ArrayIterator($wpdb->queries);
        $filteredQueriesIterator = new SetupTearDownQueriesFilter(new FactoryQueriesFilter($queriesArrayIterator));

        return $filteredQueriesIterator;
    }
public function _getFilteredQueriesIterator ( $ wpdb = null ) { if ( null === $ wpdb ) { $ wpdb = $ this -> getWpdbInstance ( ) ; } $ queriesArrayIterator = new \ ArrayIterator ( $ wpdb -> queries ) ; $ filteredQueriesIterator = new SetupTearDownQueriesFilter ( new FactoryQueriesFilter ( $ queriesArrayIterator ) ) ; return $ filteredQueriesIterator ; }
Returns the saved queries after filtering.

@param \wpdb $wpdb
@return \FilterIterator
Returns the saved queries after filtering .