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

8.0.x
webchick 2011-07-18 00:54:40 -07:00
parent f4295f5024
commit 6cd5896164
5 changed files with 10 additions and 10 deletions

View File

@ -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,
);

View File

@ -456,7 +456,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
// type table. If it's enabled, nodes may or may not have an empty string

View File

@ -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.

View File

@ -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;

View File

@ -100,7 +100,7 @@ module_load_include('inc', 'node', 'node.pages');
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 < 24; $i++) {
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 @@ for ($i = 0; $i < 12; $i++) {
$uid = 6;
$user = user_load($uid);
$node = new stdClass;
$node = new stdClass();
$node->uid = $uid;
$node->type = 'broken';
$node->sticky = 0;