Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2017-03-12 23:45:38 +00:00
parent b053be5d88
commit 1caef6d633
4 changed files with 19 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase {
$this->assertNotContains($title, $page->title);
}
/**
* @param integer $code
*/
protected function assert_response($code) {
global $page;
$this->assertEquals($code, $page->code);
@@ -84,15 +87,24 @@ abstract class ShimmiePHPUnitTestCase extends \PHPUnit_Framework_TestCase {
$this->assertContains($text, $this->page_to_text($section));
}
/**
* @param string $text
*/
protected function assert_no_text($text, $section=null) {
$this->assertNotContains($text, $this->page_to_text($section));
}
/**
* @param string $content
*/
protected function assert_content($content) {
global $page;
$this->assertContains($content, $page->data);
}
/**
* @param string $content
*/
protected function assert_no_content($content) {
global $page;
$this->assertNotContains($content, $page->data);