Skip to content

Commit 4ecdb2e

Browse files
committed
Change missed deprecations
1 parent c8a7b1f commit 4ecdb2e

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

tests/system/Filters/HoneypotTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testAfterNotApplicable()
113113

114114
$this->response->setBody('<div></div>');
115115
$this->response = $filters->run($uri, 'after');
116-
$this->assertNotContains($this->honey->name, $this->response->getBody());
116+
$this->assertStringNotContainsString($this->honey->name, $this->response->getBody());
117117
}
118118

119119
}

tests/system/I18n/TimeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,6 @@ public function testSetMonthTooSmall()
489489
$time->setMonth(-5);
490490
}
491491

492-
/**
493-
* @expectedException \
494-
*/
495492
public function testSetMonthTooBig()
496493
{
497494
$this->expectException('CodeIgniter\I18n\Exceptions\I18nException');

tests/system/Pager/PagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function testHeadLinks()
349349
{
350350
$first_page = $this->pager->makeLinks(1, 10, 50, 'default_head');
351351

352-
$this->assertNotContains('<link rel="prev"', $first_page);
352+
$this->assertStringNotContainsString('<link rel="prev"', $first_page);
353353
$this->assertStringContainsString('<link rel="canonical"', $first_page);
354354
$this->assertStringContainsString('<link rel="next"', $first_page);
355355

@@ -363,7 +363,7 @@ public function testHeadLinks()
363363

364364
$this->assertStringContainsString('<link rel="prev"', $last_page);
365365
$this->assertStringContainsString('<link rel="canonical"', $last_page);
366-
$this->assertNotContains('<link rel="next"', $last_page);
366+
$this->assertStringNotContainsString('<link rel="next"', $last_page);
367367
}
368368

369369
public function testBasedURI()

0 commit comments

Comments
 (0)