mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
- MFH: Tests for BC breaking changes.
This commit is contained in:
parent
046b34955c
commit
07d0f0cf01
24
Zend/tests/abstract-static.phpt
Normal file
24
Zend/tests/abstract-static.phpt
Normal 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
|
21
Zend/tests/object-null.phpt
Normal file
21
Zend/tests/object-null.phpt
Normal 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)
|
Loading…
Reference in New Issue
Block a user