forked from Cavemanon/cavepaintings
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user