summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-24 05:21:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-24 05:21:56 +0000
commit765d0572a24fc454989ec119cbaa1c089cd34bfa (patch)
treec6430a8867c3c29212ca43e7e28839fbcf3b4d78 /modules/simpletest
parent403485170bb17f08a0f077789babd74174009b72 (diff)
downloadbrdo-765d0572a24fc454989ec119cbaa1c089cd34bfa.tar.gz
brdo-765d0572a24fc454989ec119cbaa1c089cd34bfa.tar.bz2
- Patch #471142 by stella: code style fixes.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/files/php-2.php1
-rw-r--r--modules/simpletest/tests/cache.test4
-rw-r--r--modules/simpletest/tests/common.test4
3 files changed, 4 insertions, 5 deletions
diff --git a/modules/simpletest/files/php-2.php b/modules/simpletest/files/php-2.php
index dc8e64213..615a8d78f 100644
--- a/modules/simpletest/files/php-2.php
+++ b/modules/simpletest/files/php-2.php
@@ -1,3 +1,2 @@
<?php
print 'SimpleTest PHP was executed!';
-?> \ No newline at end of file
diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test
index 35baea8af..5b856c5a6 100644
--- a/modules/simpletest/tests/cache.test
+++ b/modules/simpletest/tests/cache.test
@@ -18,8 +18,8 @@ class CacheTestCase extends DrupalWebTestCase {
* @return
* TRUE on pass, FALSE on fail.
*/
- protected function checkCacheExists($cid, $var, $table = null) {
- if ($table == null) {
+ protected function checkCacheExists($cid, $var, $table = NULL) {
+ if ($table == NULL) {
$table = $this->default_table;
}
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 19a9cb54d..76f50977b 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -757,7 +757,7 @@ class DrupalDataApiTest extends DrupalWebTestCase {
*/
function testDrupalWriteRecord() {
// Insert an object record for a table with a single-field primary key.
- $vocabulary = new StdClass();
+ $vocabulary = new stdClass();
$vocabulary->name = 'test';
$insert_result = drupal_write_record('taxonomy_vocabulary', $vocabulary);
$this->assertTrue($insert_result == SAVED_NEW, t('Correct value returned when a record is inserted with drupal_write_record() for a table with a single-field primary key.'));
@@ -769,7 +769,7 @@ class DrupalDataApiTest extends DrupalWebTestCase {
$this->assertTrue($update_result == SAVED_UPDATED, t('Correct value returned when a record updated with drupal_write_record() for table with single-field primary key.'));
// Insert an object record for a table with a multi-field primary key.
- $vocabulary_node_type = new StdClass();
+ $vocabulary_node_type = new stdClass();
$vocabulary_node_type->vid = $vocabulary->vid;
$vocabulary_node_type->type = 'page';
$insert_result = drupal_write_record('taxonomy_vocabulary_node_type', $vocabulary_node_type);