Skip to content

Commit 07d0f0c

Browse files
author
Derick Rethans
committed
- MFH: Tests for BC breaking changes.
1 parent 046b349 commit 07d0f0c

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

Zend/tests/abstract-static.phpt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
Test for abstract static classes
3+
--FILE--
4+
<?php
5+
abstract class ezcDbHandler extends PDO
6+
{
7+
public function __construct( $dbParams, $dsn )
8+
{
9+
$user = null;
10+
$pass = null;
11+
$driverOptions = null;
12+
}
13+
14+
abstract static public function getName();
15+
16+
static public function hasFeature( $feature )
17+
{
18+
return false;
19+
}
20+
}
21+
?>
22+
DONE
23+
--EXPECT--
24+
DONE

Zend/tests/object-null.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Test whether an object is NULL or not.
3+
--FILE--
4+
<?php
5+
6+
class Bla
7+
{
8+
}
9+
10+
$b = new Bla;
11+
12+
var_dump($b != null);
13+
var_dump($b == null);
14+
var_dump($b !== null);
15+
var_dump($b === null);
16+
?>
17+
--EXPECT--
18+
bool(true)
19+
bool(false)
20+
bool(true)
21+
bool(false)

0 commit comments

Comments
 (0)