[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] com =?UTF-8?Q?pecl/search=5Fengine/solr=3A=20Remove=20illegal=20operation?= =?UTF-8?Q?s=2
From:       Omar Shaban <omars () php ! net>
Date:       2015-09-19 2:52:03
Message-ID: php-mail-3d70938d521b8acb49570ab5814c9d69490076775 () git ! php ! net
[Download RAW message or body]

Commit:    d4f8d7b9cc36b8a5510d7d5c7207b5202953ae8c
Author:    Omar Shaban <omars@php.net>         Sat, 19 Sep 2015 04:52:03 +0200
Parents:   f50b3ff91baad0b2b5817758e697ea2110b4e57f
Branches:  master

Link:       http://git.php.net/?p=pecl/search_engine/solr.git;a=commitdiff;h=d4f8d7b9cc36b8a5510d7d5c7207b5202953ae8c


Log:
Remove illegal operations from SolrCollapseFunction test

Changed paths:
  M  tests/150.solrcollapsefunction.phpt


Diff:
diff --git a/tests/150.solrcollapsefunction.phpt \
b/tests/150.solrcollapsefunction.phpt index ded80e7..7ec7a07 100644
--- a/tests/150.solrcollapsefunction.phpt
+++ b/tests/150.solrcollapsefunction.phpt
@@ -1,16 +1,10 @@
 --TEST--
-SolrCollapseFunction
+SolrCollapseFunction - string conversion
 --FILE--
 <?php
 
 $func = new SolrCollapseFunction('field');
 
-try {
-	$tmp = clone $func;
-} catch (SolrIllegalOperationException $e) {
-	echo PHP_EOL . sprintf('Code %d: %s', $e->getCode(), $e->getMessage()).PHP_EOL;
-}
-
 $func->setMax('max');
 $func->setMin('min');
 $func->setSize(1000);
@@ -28,16 +22,8 @@ var_dump((string)$func);
 $func->setMax('with space');
 var_dump((string)$func);
 
-try {
-	// known issue, object corruption
-	$tmp = serialize($func); 
-} catch (SolrIllegalOperationException $e) {
-	echo PHP_EOL . sprintf('Code %d: %s', $e->getCode(), $e->getMessage()).PHP_EOL;
-}
-
 ?>
 --EXPECTF--
-Code 4001: Cloning of SolrCollapseFunction objects is currently not supported
 string(5) "field"
 string(3) "max"
 string(3) "min"
@@ -46,5 +32,3 @@ string(4) "hint"
 string(6) "expand"
 string(77) "{!collapse field=field max=max min=min size=1000 hint=hint \
nullPolicy=expand}"  string(86) "{!collapse field=field max='with space' min=min \
                size=1000 hint=hint nullPolicy=expand}"
-
-Code 1001: Serialization of SolrCollapseFunction objects is currently not supported


--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic