fix tests

This commit is contained in:
DavidBadura
2015-07-08 11:55:42 +02:00
parent 44d518e95a
commit 2dbcb2ca6a
5 changed files with 34 additions and 18 deletions

View File

@@ -40,14 +40,14 @@ class DependsHandler implements SubscribingHandlerInterface
'type' => 'Depends',
'format' => 'json',
'direction' => GraphNavigator::DIRECTION_DESERIALIZATION,
'method' => 'deserializeCarbon'
'method' => 'deserialize'
);
$methods[] = array(
'type' => 'Depends',
'format' => 'json',
'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
'method' => 'serializeCarbon'
'method' => 'serialize'
);
return $methods;
@@ -61,7 +61,7 @@ class DependsHandler implements SubscribingHandlerInterface
* @return string
* @throws ReferenceException
*/
public function serializeCarbon(VisitorInterface $visitor, $tasks, array $type, Context $context)
public function serialize(VisitorInterface $visitor, $tasks, array $type, Context $context)
{
$list = [];
@@ -82,10 +82,8 @@ class DependsHandler implements SubscribingHandlerInterface
* @param array $type
* @return ArrayCollection
*/
public function deserializeCarbon(VisitorInterface $visitor, $data, array $type)
public function deserialize(VisitorInterface $visitor, $data, array $type)
{
dump($data);
if (!$data) {
return new ArrayCollection();
}