Preparations for unit tests
PHPUnit tests
Cast return of query as integer