From: Felipe Pena Date: Fri, 10 Oct 2008 16:56:28 +0000 (+0000) Subject: - Fixed tests X-Git-Tag: BEFORE_HEAD_NS_CHANGE~258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c71486c59a055d84d99a31a6f2c269c34a18c9a;p=php - Fixed tests --- diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt index ea9bd0214c..f9e849dcbd 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt @@ -130,13 +130,11 @@ object(myclass)#4 (1) { } Using PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE to fetch the object from DB and unserialize it... -myclass::__set(myobj, 'C:7:"myclass":19:{Data from serialize}') +myclass::unserialize('C:7:"myclass":19:{Data from serialize}') myclass::__construct(PDO shall not call __construct()) -object(myclass)#%d (2) { +object(myclass)#%d (1) { [u"myprotected":protected]=> unicode(19) "a protected propery" - [u"myobj"]=> - unicode(38) "C:7:"myclass":19:{Data from serialize}" } Using PDO::FETCH_CLASS to fetch the object from DB and unserialize it... @@ -148,4 +146,4 @@ object(myclass)#%d (2) { [u"myobj"]=> unicode(38) "C:7:"myclass":19:{Data from serialize}" } -done! \ No newline at end of file +done! diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt index 4233d911e9..ba29e6a53e 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt @@ -89,10 +89,8 @@ object(myclass)#%d (0) { } And now PDO using setFetchMode(PDO::FETCH:CLASS|PDO::FETCH_SERIALIZE) + fetch()... -myclass::__set('myobj', 'Data fetched from DB to be given to unserialize()') +myclass::unserialize('Data fetched from DB to be given to unserialize()') myclass::__construct('Called by PDO') - note that it must not be called when unserializing -object(myclass)#%d (1) { - ["myobj"]=> - string(49) "Data fetched from DB to be given to unserialize()" +object(myclass)#%d (0) { } -done! \ No newline at end of file +done!