Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

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

test fixes

parent fcada2a1
...@@ -8,7 +8,6 @@ namespace Lavoisier; ...@@ -8,7 +8,6 @@ namespace Lavoisier;
* Date: 28/10/13 * Date: 28/10/13
*/ */
use \Lavoisier\IEntries;
class Entries extends \ArrayObject implements IEntries class Entries extends \ArrayObject implements IEntries
{ {
......
...@@ -16,9 +16,9 @@ class CSVasXMLHydrator implements IHydrator ...@@ -16,9 +16,9 @@ class CSVasXMLHydrator implements IHydrator
$result = new \ArrayObject(); $result = new \ArrayObject();
foreach ($rows as $row) { foreach ($rows as $row) {
foreach ($row as $row) { foreach ($row as $block) {
$tmp_col = new \ArrayObject(); $tmp_col = new \ArrayObject();
foreach ($row as $column) { foreach ($block as $column) {
$col_attr = $column->attributes(); $col_attr = $column->attributes();
$tmp_col[strval($col_attr['label'])] = strval($column); $tmp_col[strval($col_attr['label'])] = strval($column);
} }
......
...@@ -4,7 +4,6 @@ namespace Lavoisier\Hydrators; ...@@ -4,7 +4,6 @@ namespace Lavoisier\Hydrators;
use \Lavoisier\IHydrator; use \Lavoisier\IHydrator;
use \Lavoisier\IEntries; use \Lavoisier\IEntries;
use \Lavoisier\Entries;
class EntriesHydrator implements IHydrator class EntriesHydrator implements IHydrator
{ {
......
<?php <?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; namespace Lavoisier\Hydrators;
......
...@@ -8,7 +8,6 @@ namespace Lavoisier; ...@@ -8,7 +8,6 @@ namespace Lavoisier;
* Date: 22/10/13 * Date: 22/10/13
*/ */
use \Lavoisier\IHydrator;
use \Lavoisier\Hydrators\DefaultHydrator; use \Lavoisier\Hydrators\DefaultHydrator;
use \Lavoisier\Exceptions\HTTPStatusException; use \Lavoisier\Exceptions\HTTPStatusException;
use \Lavoisier\Exceptions\cURLException; use \Lavoisier\Exceptions\cURLException;
...@@ -246,6 +245,7 @@ class Query ...@@ -246,6 +245,7 @@ class Query
* convert map to &key=value url style * convert map to &key=value url style
* @static * @static
* @param array $fields, tuple of key/values to convert * @param array $fields, tuple of key/values to convert
* @return string
*/ */
static public function urlify(array $fields) static public function urlify(array $fields)
{ {
......
...@@ -5,8 +5,6 @@ require_once dirname(__FILE__) . '/../Entries.php'; ...@@ -5,8 +5,6 @@ require_once dirname(__FILE__) . '/../Entries.php';
require_once dirname(__FILE__) . '/../IHydrator.php'; require_once dirname(__FILE__) . '/../IHydrator.php';
require_once dirname(__FILE__) . '/../Hydrators/EntriesHydrator.php'; require_once dirname(__FILE__) . '/../Hydrators/EntriesHydrator.php';
use \Lavoisier\Query;
use \Lavoisier\Entries;
use \Lavoisier\Hydrators\EntriesHydrator; use \Lavoisier\Hydrators\EntriesHydrator;
......
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
require_once dirname(__FILE__) . '/../IHydrator.php'; require_once dirname(__FILE__) . '/../IHydrator.php';
require_once dirname(__FILE__) . '/../Hydrators/StringHydrator.php'; require_once dirname(__FILE__) . '/../Hydrators/StringHydrator.php';
use \Lavoisier\Query;
use \Lavoisier\Hydrators\StringHydrator; use \Lavoisier\Hydrators\StringHydrator;
class StringHydratorTest extends \PHPUnit_Framework_TestCase class StringHydratorTest extends \PHPUnit_Framework_TestCase
{ {
public function testHydrate() 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