Fix incorrect use of assignment in where equality was intended - class tests.

This commit is contained in:
Robert Nicholson 2007-11-23 15:36:41 +00:00
parent 70bf5468de
commit f35dfc697b
5 changed files with 10 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

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