Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/PHP_Related.test.php')
-rw-r--r--tests/modules/PHP_Related.test.php74
1 files changed, 37 insertions, 37 deletions
diff --git a/tests/modules/PHP_Related.test.php b/tests/modules/PHP_Related.test.php
index 264bf84dd2..a37adeb5a3 100644
--- a/tests/modules/PHP_Related.test.php
+++ b/tests/modules/PHP_Related.test.php
@@ -38,9 +38,9 @@ class Test_PHP_Related extends UnitTestCase
$this->assertEqual($elem1, 'key');
$this->assertEqual($elem2, 'elem2');
}
- function test_TMP()
- {
- echo md5('root'.md5('nintendo'));
+ function test_TMP()
+ {
+ echo md5('root'.md5('nintendo'));
}
public function testStringEqualszero()
@@ -49,7 +49,7 @@ class Test_PHP_Related extends UnitTestCase
// it might seem strange. This was the reason of a bug I searched 1 hour for!!
$this->assertTrue( $columnToSort == 0);
- }
+ }
public function testMergeArray()
{
@@ -263,42 +263,42 @@ class Test_PHP_Related extends UnitTestCase
$size = round($size/1024/1024,3);
//echo "<br>size compressed string = ". $size."mb";
//echo "<br>after compression all sub arrays = ". $timer;
- }
-
- function test_functionReturnNothing()
- {
- function givemenothing()
- {
- $a = 4;
- }
-
- $return = givemenothing();
-
- $this->assertFalse(isset($return));
- $this->assertTrue(empty($return));
- $this->assertTrue(!is_int($return));
- $this->assertTrue(!is_string($return));
- $this->assertTrue(!is_bool($return));
}
-
+
+ function test_functionReturnNothing()
+ {
+ function givemenothing()
+ {
+ $a = 4;
+ }
+
+ $return = givemenothing();
+
+ $this->assertFalse(isset($return));
+ $this->assertTrue(empty($return));
+ $this->assertTrue(!is_int($return));
+ $this->assertTrue(!is_string($return));
+ $this->assertTrue(!is_bool($return));
+ }
+
+}
+
+
+class test_staticAttr
+{
+ static public $a = 'testa';
+ public $b = 'testb';
}
-
-class test_staticAttr
-{
- static public $a = 'testa';
- public $b = 'testb';
-}
-
-class test_magicMethodStaticAttr
-{
- static $test = "test";
-
- function __get($name)
- {
- print("reading static attr ; __get called");
- return 1;
- }
+class test_magicMethodStaticAttr
+{
+ static $test = "test";
+
+ function __get($name)
+ {
+ print("reading static attr ; __get called");
+ return 1;
+ }
}