summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Nicholson <nicholsr@php.net>2007-11-23 15:41:05 +0000
committerRobert Nicholson <nicholsr@php.net>2007-11-23 15:41:05 +0000
commitdc75c7c2a18134ba1b81e343fc0238402f5bd216 (patch)
tree8e6683477241839a179926584f9a45b92e211d46 /tests
parent3acbcf448fc245f42d2f813c253b31e35cf79786 (diff)
downloadphp-git-dc75c7c2a18134ba1b81e343fc0238402f5bd216.tar.gz
Fix incorrect use of assignment in where equality was intended - class tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/assign_op_property_001.phpt4
-rw-r--r--tests/classes/incdec_property_001.phpt4
-rw-r--r--tests/classes/incdec_property_002.phpt4
-rw-r--r--tests/classes/incdec_property_003.phpt4
-rw-r--r--tests/classes/incdec_property_004.phpt4
5 files changed, 10 insertions, 10 deletions
diff --git a/tests/classes/assign_op_property_001.phpt b/tests/classes/assign_op_property_001.phpt
index 54e519e8f6..21e131cfa4 100644
--- a/tests/classes/assign_op_property_001.phpt
+++ b/tests/classes/assign_op_property_001.phpt
@@ -7,13 +7,13 @@ class Test {
private $real_a = 2;
function __set($property, $value) {
- if ($property = "a") {
+ if ($property == "a") {
$this->real_a = $value;
}
}
function __get($property) {
- if ($property = "a") {
+ if ($property == "a") {
return $this->real_a;
}
}
diff --git a/tests/classes/incdec_property_001.phpt b/tests/classes/incdec_property_001.phpt
index 39bf06f65f..97a24d30b6 100644
--- a/tests/classes/incdec_property_001.phpt
+++ b/tests/classes/incdec_property_001.phpt
@@ -7,13 +7,13 @@ class Test {
private $real_a = 2;
function __set($property, $value) {
- if ($property = "a") {
+ if ($property == "a") {
$this->real_a = $value;
}
}
function __get($property) {
- if ($property = "a") {
+ if ($property == "a") {
return $this->real_a;
}
}
diff --git a/tests/classes/incdec_property_002.phpt b/tests/classes/incdec_property_002.phpt
index fe08625ea8..c1d7dded3b 100644
--- a/tests/classes/incdec_property_002.phpt
+++ b/tests/classes/incdec_property_002.phpt
@@ -7,13 +7,13 @@ class Test {
private $real_a = 2;
function __set($property, $value) {
- if ($property = "a") {
+ if ($property == "a") {
$this->real_a = $value;
}
}
function __get($property) {
- if ($property = "a") {
+ if ($property == "a") {
return $this->real_a;
}
}
diff --git a/tests/classes/incdec_property_003.phpt b/tests/classes/incdec_property_003.phpt
index d26277ab8d..1a923849f4 100644
--- a/tests/classes/incdec_property_003.phpt
+++ b/tests/classes/incdec_property_003.phpt
@@ -7,13 +7,13 @@ class Test {
private $real_a = 2;
function __set($property, $value) {
- if ($property = "a") {
+ if ($property == "a") {
$this->real_a = $value;
}
}
function __get($property) {
- if ($property = "a") {
+ if ($property == "a") {
return $this->real_a;
}
}
diff --git a/tests/classes/incdec_property_004.phpt b/tests/classes/incdec_property_004.phpt
index 5ccad190b8..05e3b445ac 100644
--- a/tests/classes/incdec_property_004.phpt
+++ b/tests/classes/incdec_property_004.phpt
@@ -7,13 +7,13 @@ class Test {
private $real_a = 2;
function __set($property, $value) {
- if ($property = "a") {
+ if ($property == "a") {
$this->real_a = $value;
}
}
function __get($property) {
- if ($property = "a") {
+ if ($property == "a") {
return $this->real_a;
}
}