remove duplicate tests

I imported these with my old zend importer. Now that we have zend/good, these are duplicated.

There are 3 zend tests left:

* zend_closure_005.php
* zend_closure_020.php
* zend_indirect_method_call_005.php

Which we've hand-edited to be similar to zend but not exactly the same. I'm going to leave them for now.
Esse commit está contido em:
ptarjan
2013-04-18 02:26:54 -07:00
commit de Sara Golemon
commit e36e75fa5f
14 arquivos alterados com 0 adições e 144 exclusões
-26
Ver Arquivo
@@ -1,26 +0,0 @@
<?php
class A {
private $x = 0;
function getClosureGetter () {
return function () {
return function () {
$this->x++;
};
};
}
function printX () {
echo $this->x."\n";
}
}
$a = new A;
$a->printX();
$getClosure = $a->getClosureGetter();
$a->printX();
$closure = $getClosure();
$a->printX();
$closure();
$a->printX();
@@ -1,4 +0,0 @@
0
0
0
1
-7
Ver Arquivo
@@ -1,7 +0,0 @@
<?php
$a = create_function('$x', 'return function($y) use ($x) { return $x * $y; };');
var_dump($a(2)->__invoke(4));
?>
@@ -1 +0,0 @@
int(8)
@@ -1,15 +0,0 @@
<?php
class foo {
public function __construct() {
throw new Exception('foobar');
}
}
try {
$X = (new foo)->Inexistent(3);
} catch (Exception $e) {
var_dump($e->getMessage()); // foobar
}
?>
@@ -1 +0,0 @@
string(6) "foobar"
@@ -1,22 +0,0 @@
<?php
class foo {
public $x = 'testing';
public function bar() {
return "foo";
}
public function baz() {
return new self;
}
static function xyz() {
}
}
var_dump((new foo())->bar()); // string(3) "foo"
var_dump((new foo())->baz()->x); // string(7) "testing"
var_dump((new foo())->baz()->baz()->bar()); // string(3) "foo"
var_dump((new foo())->xyz()); // NULL
(new foo())->www();
?>
@@ -1,5 +0,0 @@
string(3) "foo"
string(7) "testing"
string(3) "foo"
NULL
HipHop Fatal error: Call to undefined method foo::www from anonymous context in %s on line 20
@@ -1,18 +0,0 @@
<?php
class foo {
public $x = 1;
public function getX() {
return $this->x;
}
public function setX($val) {
$this->x = $val;
return $this;
}
}
$X = (new foo)->setX(10)->getX();
var_dump($X); // int(10)
?>
@@ -1 +0,0 @@
int(10)
@@ -1,18 +0,0 @@
<?php
class bar {
public $z;
public function __construct() {
$this->z = new stdclass;
}
public function getZ() {
return $this->z;
}
}
var_dump(clone (new bar)->z);
var_dump(clone (new bar)->getZ());
?>
@@ -1,4 +0,0 @@
object(stdClass)#3 (0) {
}
object(stdClass)#5 (0) {
}
@@ -1,19 +0,0 @@
<?php
class foo {
public $x = 1;
}
class bar {
public $y = 'foo';
}
$x = 'bar';
$bar = new bar;
var_dump((new bar)->y); // foo
var_dump((new $x)->y); // foo
var_dump((new $bar->y)->x); // 1
?>
@@ -1,3 +0,0 @@
string(3) "foo"
string(3) "foo"
int(1)