Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpsPortal
lavoisiercli
Commits
3b921ee9
Commit
3b921ee9
authored
Oct 13, 2014
by
Olivier Lequeux
Browse files
test fixes
parent
fcada2a1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
13 deletions
+3
-13
Entries.php
Entries.php
+0
-1
Hydrators/CSVasXMLHydrator.php
Hydrators/CSVasXMLHydrator.php
+2
-2
Hydrators/EntriesHydrator.php
Hydrators/EntriesHydrator.php
+0
-1
Hydrators/StringHydrator.php
Hydrators/StringHydrator.php
+0
-4
Query.php
Query.php
+1
-1
Tests/EntriesHydratorTest.php
Tests/EntriesHydratorTest.php
+0
-2
Tests/StringHydratorTest.php
Tests/StringHydratorTest.php
+0
-2
No files found.
Entries.php
View file @
3b921ee9
...
...
@@ -8,7 +8,6 @@ namespace Lavoisier;
* Date: 28/10/13
*/
use
\
Lavoisier\IEntries
;
class
Entries
extends
\
ArrayObject
implements
IEntries
{
...
...
Hydrators/CSVasXMLHydrator.php
View file @
3b921ee9
...
...
@@ -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
);
}
...
...
Hydrators/EntriesHydrator.php
View file @
3b921ee9
...
...
@@ -4,7 +4,6 @@ namespace Lavoisier\Hydrators;
use
\
Lavoisier\IHydrator
;
use
\
Lavoisier\IEntries
;
use
\
Lavoisier\Entries
;
class
EntriesHydrator
implements
IHydrator
{
...
...
Hydrators/StringHydrator.php
View file @
3b921ee9
<?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
;
...
...
Query.php
View file @
3b921ee9
...
...
@@ -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
)
{
...
...
Tests/EntriesHydratorTest.php
View file @
3b921ee9
...
...
@@ -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
;
...
...
Tests/StringHydratorTest.php
View file @
3b921ee9
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment