summaryrefslogtreecommitdiff
path: root/tests/classes/incdec_property_004.phpt
diff options
context:
space:
mode:
authorRobert Nicholson <nicholsr@php.net>2007-11-23 15:34:04 +0000
committerRobert Nicholson <nicholsr@php.net>2007-11-23 15:34:04 +0000
commit241247db2fa0fb3cde4295eaeff22b2a263a629f (patch)
tree66b4cf022ed3f86ce4ea6b1c760c6052b7530c03 /tests/classes/incdec_property_004.phpt
parent17c6007445fddb86271ac1d77ee0ad96eb10489f (diff)
downloadphp-git-241247db2fa0fb3cde4295eaeff22b2a263a629f.tar.gz
Fix incorrect use of assignment in where equality was intended - class tests.
Diffstat (limited to 'tests/classes/incdec_property_004.phpt')
-rw-r--r--tests/classes/incdec_property_004.phpt4
1 files changed, 2 insertions, 2 deletions
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;
}
}