- MFH: Tests for BC breaking changes.

This commit is contained in:
Derick Rethans 2006-05-12 10:02:31 +00:00
parent 046b34955c
commit 07d0f0cf01
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,24 @@
--TEST--
Test for abstract static classes
--FILE--
<?php
abstract class ezcDbHandler extends PDO
{
public function __construct( $dbParams, $dsn )
{
$user = null;
$pass = null;
$driverOptions = null;
}
abstract static public function getName();
static public function hasFeature( $feature )
{
return false;
}
}
?>
DONE
--EXPECT--
DONE

View File

@ -0,0 +1,21 @@
--TEST--
Test whether an object is NULL or not.
--FILE--
<?php
class Bla
{
}
$b = new Bla;
var_dump($b != null);
var_dump($b == null);
var_dump($b !== null);
var_dump($b === null);
?>
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(false)