projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
compatibility with ext-pq/master
[m6w6/pq-gateway]
/
tests
/
lib
/
pq
/
Gateway
/
CellTest.php
diff --git
a/tests/lib/pq/Gateway/CellTest.php
b/tests/lib/pq/Gateway/CellTest.php
index de57a4fbcc7f25e91eaa6628382a88d3599c5adf..8ec28598ad220ff489ca8e3d1bf7c955125f9ea1 100644
(file)
--- a/
tests/lib/pq/Gateway/CellTest.php
+++ b/
tests/lib/pq/Gateway/CellTest.php
@@
-77,7
+77,8
@@
class CellTest extends \PHPUnit_Framework_TestCase {
$row->list = [$row->list->get()];
$row->update();
$this->assertEquals([[0,1,2]], $row->list->get());
$row->list = [$row->list->get()];
$row->update();
$this->assertEquals([[0,1,2]], $row->list->get());
- $this->setExpectedException("PHPUnit_Framework_Error_Notice", "Indirect modification of overloaded element of pq\Gateway\Cell has no effect");
+ $this->setExpectedException("PHPUnit_Framework_Error_Notice",
+ "Indirect modification of overloaded element of pq\Gateway\Cell has no effect");
$row->list[0][0] = -1;
}
$row->list[0][0] = -1;
}
@@
-99,19
+100,19
@@
class CellTest extends \PHPUnit_Framework_TestCase {
}
}
}
}
-class Hstore implements \pq\Converter
Interface
+class Hstore implements \pq\Converter
{
protected $types;
function __construct(\pq\Types $types) {
{
protected $types;
function __construct(\pq\Types $types) {
- $this->types = $types;
+ $this->types = $types
["hstore"]->oid
;
}
function convertTypes() {
}
function convertTypes() {
- return [$this->types
["hstore"]->oid
];
+ return [$this->types];
}
}
- function convertFromString($string) {
+ function convertFromString($string
, $type
) {
return eval("return [$string];");
}
return eval("return [$string];");
}
- function convertToString($data) {
+ function convertToString($data
, $type
) {
$string = "";
foreach ($data as $k => $v) {
$string .= "\"".addslashes($k)."\"=>";
$string = "";
foreach ($data as $k => $v) {
$string .= "\"".addslashes($k)."\"=>";