Remove all the trailing spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3076 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -32,7 +32,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
$res = $dbjson->insertMany ("collection",
|
||||
array ("key1"=>"val1", "key2"=>"val2"));
|
||||
}
|
||||
|
||||
|
||||
public function test_insertMany2 ()
|
||||
{
|
||||
// Document #2 and #3
|
||||
@@ -42,7 +42,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
array ("key1"=>"val3", "key2"=>"val4")));
|
||||
$this->assertSame ($res, 2);
|
||||
}
|
||||
|
||||
|
||||
public function test_filter1 ()
|
||||
{
|
||||
// Return all the keys (filter = array ())
|
||||
@@ -118,7 +118,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
}
|
||||
public function test_find3 ()
|
||||
{
|
||||
// Exception : fields not an array
|
||||
// Exception : fields not an array
|
||||
$this->setExpectedException ("Exception");
|
||||
$dbjson = new dbjson ("dbjson://".dbfile);
|
||||
$res = $dbjson->find ("collection", array ("key1"=>array ("val3", "<="),
|
||||
@@ -234,7 +234,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
unset ($res[2]["_id"]);
|
||||
$this->assertSame ($res, array ());
|
||||
}
|
||||
|
||||
|
||||
public function test_find11 ()
|
||||
{
|
||||
$dbjson = new dbjson ("dbjson://".dbfile);
|
||||
@@ -262,7 +262,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
public function test_update1 ()
|
||||
{
|
||||
$dbjson = new dbjson ("dbjson://".dbfile);
|
||||
$res = $dbjson->update ("collection", array (), array ("key2"=>"val6",
|
||||
$res = $dbjson->update ("collection", array (), array ("key2"=>"val6",
|
||||
"key5"=>"val5"));
|
||||
$this->assertSame ($res, 1);
|
||||
}
|
||||
@@ -299,7 +299,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
public function test_update2 ()
|
||||
{
|
||||
$dbjson = new dbjson ("dbjson://".dbfile);
|
||||
$res = $dbjson->update ("collection", array (), array ("key2"=>"val7",
|
||||
$res = $dbjson->update ("collection", array (), array ("key2"=>"val7",
|
||||
"key5"=>"val8"));
|
||||
$this->assertSame ($res, 2);
|
||||
}
|
||||
@@ -321,7 +321,7 @@ class test_dbjson extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$dbjson = new dbjson ("dbjson://".dbfile);
|
||||
$res = $dbjson->update ("collection", array (),
|
||||
array ("key2"=>"val9",
|
||||
array ("key2"=>"val9",
|
||||
"key5"=>"val7",
|
||||
"_unset"=>array ("key2")));
|
||||
$this->assertSame ($res, 2);
|
||||
|
||||
Reference in New Issue
Block a user