|
@@ 780-787 (lines=8) @@
|
| 777 |
|
* @param boolean $ignoreCase |
| 778 |
|
* @param boolean $checkForObjectIdentity |
| 779 |
|
*/ |
| 780 |
|
public function assertSQLContains($needleSQL, $haystackSQL, $message = '', $ignoreCase = false, |
| 781 |
|
$checkForObjectIdentity = true |
| 782 |
|
) { |
| 783 |
|
$needleSQL = $this->normaliseSQL($needleSQL); |
| 784 |
|
$haystackSQL = $this->normaliseSQL($haystackSQL); |
| 785 |
|
|
| 786 |
|
$this->assertContains($needleSQL, $haystackSQL, $message, $ignoreCase, $checkForObjectIdentity); |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
/** |
| 790 |
|
* Asserts that a SQL query contains a SQL fragment |
|
@@ 798-805 (lines=8) @@
|
| 795 |
|
* @param boolean $ignoreCase |
| 796 |
|
* @param boolean $checkForObjectIdentity |
| 797 |
|
*/ |
| 798 |
|
public function assertSQLNotContains($needleSQL, $haystackSQL, $message = '', $ignoreCase = false, |
| 799 |
|
$checkForObjectIdentity = true |
| 800 |
|
) { |
| 801 |
|
$needleSQL = $this->normaliseSQL($needleSQL); |
| 802 |
|
$haystackSQL = $this->normaliseSQL($haystackSQL); |
| 803 |
|
|
| 804 |
|
$this->assertNotContains($needleSQL, $haystackSQL, $message, $ignoreCase, $checkForObjectIdentity); |
| 805 |
|
} |
| 806 |
|
/** |
| 807 |
|
* Helper function for the DOS matchers |
| 808 |
|
*/ |