Issues (12)

tests/Query/MySql/SelectTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Latitude\QueryBuilder\Query\MySql;
4
5
use Latitude\QueryBuilder\TestCase;
6
7
class SelectTest extends TestCase
8
{
9
    use MySqlEngineSetup;
10
11
    public function testCalcFoundRows()
12
    {
13
        $select = $this->factory
14
            ->select()
15
            ->calcFoundRows(true)
0 ignored issues
show
The method calcFoundRows() does not exist on Latitude\QueryBuilder\Query\SelectQuery. It seems like you code against a sub-type of Latitude\QueryBuilder\Query\SelectQuery such as Latitude\QueryBuilder\Query\MySql\SelectQuery. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
            ->/** @scrutinizer ignore-call */ calcFoundRows(true)
Loading history...
16
            ->from('users')
17
            ->limit(10);
18
19
        $this->assertSql('SELECT SQL_CALC_FOUND_ROWS * FROM `users` LIMIT 10', $select);
20
        $this->assertParams([], $select);
21
    }
22
}
23