Skip to content
Snippets Groups Projects
Commit e3085330 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #348448 follow-up by jbrown: Coding standard fixes to E_STRICT tests.

parent dafc861f
No related branches found
No related tags found
No related merge requests found
......@@ -792,7 +792,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase {
*/
function testLineBreakFilter() {
// Setup dummy filter object.
$filter = new stdClass;
$filter = new stdClass();
$filter->callback = '_filter_autop';
// Since the line break filter naturally needs plenty of newlines in test
......@@ -1156,7 +1156,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase {
*/
function testHtmlEscapeFilter() {
// Setup dummy filter object.
$filter = new stdClass;
$filter = new stdClass();
$filter->callback = '_filter_html_escape';
$tests = array(
......@@ -1174,7 +1174,7 @@ class FilterUnitTestCase extends DrupalUnitTestCase {
*/
function testUrlFilter() {
// Setup dummy filter object.
$filter = new stdClass;
$filter = new stdClass();
$filter->callback = '_filter_url';
$filter->settings = array(
'filter_url_length' => 496,
......@@ -1509,7 +1509,7 @@ www.example.com with a newline in comments -->
*/
function testUrlFilterContent() {
// Setup dummy filter object.
$filter = new stdClass;
$filter = new stdClass();
$filter->settings = array(
'filter_url_length' => 496,
);
......
......@@ -476,7 +476,7 @@ function _update_7000_node_get_types() {
$extra_types = array_diff($all_types, array_keys($node_types));
foreach ($extra_types as $type) {
$type_object = new stdClass;
$type_object = new stdClass();
$type_object->type = $type;
// In Drupal 6, whether you have a body field or not is a flag in the node
......
......@@ -486,7 +486,7 @@ function poll_load($nodes) {
$poll = db_query("SELECT runtime, active FROM {poll} WHERE nid = :nid", array(':nid' => $node->nid))->fetchObject();
if (empty($poll)) {
$poll = new stdClass;
$poll = new stdClass();
}
// Load the appropriate choices into the $poll object.
......
......@@ -544,7 +544,7 @@ function template_preprocess_profile_block(&$variables) {
// Supply filtered version of $fields that have values.
foreach ($variables['fields'] as $field) {
if ($field->value) {
$variables['profile'][$field->name] = new stdClass;
$variables['profile'][$field->name] = new stdClass();
$variables['profile'][$field->name]->title = check_plain($field->title);
$variables['profile'][$field->name]->value = $field->value;
$variables['profile'][$field->name]->type = $field->type;
......
......@@ -100,7 +100,7 @@
for ($i = 0; $i < 24; $i++) {
$uid = intval($i / 8) + 3;
$user = user_load($uid);
$node = new stdClass;
$node = new stdClass();
$node->uid = $uid;
$node->type = $i < 12 ? 'page' : 'story';
$node->sticky = 0;
......@@ -148,7 +148,7 @@
for ($i = 0; $i < 12; $i++) {
$uid = intval($i / 4) + 3;
$user = user_load($uid);
$node = new stdClass;
$node = new stdClass();
$node->uid = $uid;
$node->type = 'poll';
$node->sticky = 0;
......@@ -187,7 +187,7 @@
$uid = 6;
$user = user_load($uid);
$node = new stdClass;
$node = new stdClass();
$node->uid = $uid;
$node->type = 'broken';
$node->sticky = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment