コード例 #1
0
 private function assertQueryResultErrorCodeForCountValue($errorCode, QueryResult $queryResult)
 {
     if ($errorCode > 0) {
         $this->assertNotEmpty($queryResult->getErrors());
         return $this->assertNull($queryResult->getCountValue());
     }
     $this->assertEmpty($queryResult->getErrors());
     $this->assertInternalType('integer', $queryResult->getCountValue());
 }