Commit 3b921ee9 authored by Olivier Lequeux's avatar Olivier Lequeux
Browse files

test fixes

parent fcada2a1
......@@ -8,7 +8,6 @@ namespace Lavoisier;
* Date: 28/10/13
*/
use \Lavoisier\IEntries;
class Entries extends \ArrayObject implements IEntries
{
......
......@@ -16,9 +16,9 @@ class CSVasXMLHydrator implements IHydrator
$result = new \ArrayObject();
foreach ($rows as $row) {
foreach ($row as $row) {
foreach ($row as $block) {
$tmp_col = new \ArrayObject();
foreach ($row as $column) {
foreach ($block as $column) {
$col_attr = $column->attributes();
$tmp_col[strval($col_attr['label'])] = strval($column);
}
......
......@@ -4,7 +4,6 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\IHydrator;
use \Lavoisier\IEntries;
use \Lavoisier\Entries;
class EntriesHydrator implements IHydrator
{
......
<?php
/*
* @todo check if this class is use full when http code return will be properly managed in Lavoisier/Query
* @todo ?accept=txt should be sufficient
*/
namespace Lavoisier\Hydrators;
......
......@@ -8,7 +8,6 @@ namespace Lavoisier;
* Date: 22/10/13
*/
use \Lavoisier\IHydrator;
use \Lavoisier\Hydrators\DefaultHydrator;
use \Lavoisier\Exceptions\HTTPStatusException;
use \Lavoisier\Exceptions\cURLException;
......@@ -246,6 +245,7 @@ class Query
* convert map to &key=value url style
* @static
* @param array $fields, tuple of key/values to convert
* @return string
*/
static public function urlify(array $fields)
{
......
......@@ -5,8 +5,6 @@ require_once dirname(__FILE__) . '/../Entries.php';
require_once dirname(__FILE__) . '/../IHydrator.php';
require_once dirname(__FILE__) . '/../Hydrators/EntriesHydrator.php';
use \Lavoisier\Query;
use \Lavoisier\Entries;
use \Lavoisier\Hydrators\EntriesHydrator;
......
......@@ -3,10 +3,8 @@
require_once dirname(__FILE__) . '/../IHydrator.php';
require_once dirname(__FILE__) . '/../Hydrators/StringHydrator.php';
use \Lavoisier\Query;
use \Lavoisier\Hydrators\StringHydrator;
class StringHydratorTest extends \PHPUnit_Framework_TestCase
{
public function testHydrate()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment