Browse Source

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

experimental/phar_tar
Robert Nicholson 18 years ago
parent
commit
241247db2f
  1. 4
      tests/classes/assign_op_property_001.phpt
  2. 4
      tests/classes/incdec_property_001.phpt
  3. 4
      tests/classes/incdec_property_002.phpt
  4. 4
      tests/classes/incdec_property_003.phpt
  5. 4
      tests/classes/incdec_property_004.phpt

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

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

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

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

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

Loading…
Cancel
Save