Changeset 55465
- Timestamp:
- 03/06/2023 02:44:35 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/query.php
r54530 r55465 1187 1187 $parts = mb_split( '\)\s+AND\s+\(', $sql ); 1188 1188 $this->assertIsArray( $parts, 'SQL query cannot be split into multiple parts using operator AND.' ); 1189 $this->assert Equals( 2, count( $parts ), 'SQL query does not contain correct number of AND operators.' );1189 $this->assertSame( 2, count( $parts ), 'SQL query does not contain correct number of AND operators.' ); 1190 1190 1191 1191 $this->assertStringNotContainsString( 'OR', $sql, 'SQL query contains conditions joined by operator OR.' ); … … 1234 1234 $parts = mb_split( '\)\s+OR\s+\(', $sql ); 1235 1235 $this->assertIsArray( $parts, 'SQL query cannot be split into multiple parts using operator OR.' ); 1236 $this->assert Equals( 2, count( $parts ), 'SQL query does not contain correct number of OR operators.' );1236 $this->assertSame( 2, count( $parts ), 'SQL query does not contain correct number of OR operators.' ); 1237 1237 1238 1238 // Checking number of occurrences of AND while skipping the one at the beginning. … … 1280 1280 $parts = mb_split( '\)\s+AND\s+\(', $sql ); 1281 1281 $this->assertIsArray( $parts, 'SQL query cannot be split into multiple parts using operator AND.' ); 1282 $this->assert Equals( 2, count( $parts ), 'SQL query does not contain correct number of AND operators.' );1282 $this->assertSame( 2, count( $parts ), 'SQL query does not contain correct number of AND operators.' ); 1283 1283 1284 1284 $this->assertStringNotContainsString( 'OR', $sql, 'SQL query contains conditions joined by operator OR.' );
Note: See TracChangeset
for help on using the changeset viewer.