Skip to content
Permalink
Browse files

Removed $stringClean

  • Loading branch information...
ravage84 committed Sep 25, 2015
1 parent 5eedc0f commit a6d62cb6a870f206b5ae23b8b61c8e59ba146416
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php
@@ -327,7 +327,6 @@ public function testAssertTextEquals() {
*/
public function testAssertTextStartsWith() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertStringStartsWith("some\nstring", $stringDirty);
$this->assertStringStartsNotWith("some\r\nstring\r\nwith", $stringDirty);
@@ -344,8 +343,6 @@ public function testAssertTextStartsWith() {
*/
public function testAssertTextStartsNotWith() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertTextStartsNotWith("some\nstring\nwithout", $stringDirty);
}
@@ -356,8 +353,6 @@ public function testAssertTextStartsNotWith() {
*/
public function testAssertTextEndsWith() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertTextEndsWith("string\nwith\r\ndifferent\rline endings!", $stringDirty);
$this->assertTextEndsWith("string\r\nwith\ndifferent\nline endings!", $stringDirty);
}
@@ -369,8 +364,6 @@ public function testAssertTextEndsWith() {
*/
public function testAssertTextEndsNotWith() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertStringEndsNotWith("different\nline endings", $stringDirty);
$this->assertTextEndsNotWith("different\rline endings", $stringDirty);
}
@@ -382,11 +375,8 @@ public function testAssertTextEndsNotWith() {
*/
public function testAssertTextContains() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertContains("different", $stringDirty);
$this->assertNotContains("different\rline", $stringDirty);
$this->assertTextContains("different\rline", $stringDirty);
}
@@ -397,8 +387,6 @@ public function testAssertTextContains() {
*/
public function testAssertTextNotContains() {
$stringDirty = "some\nstring\r\nwith\rdifferent\nline endings!";
// $stringClean = "some\nstring\nwith\ndifferent\nline endings!";
$this->assertTextNotContains("different\rlines", $stringDirty);
}

0 comments on commit a6d62cb

Please sign in to comment.
You can’t perform that action at this time.