Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #19 from cleentfaar/removed-modelserializer
Browse files Browse the repository at this point in the history
Removed modelserializer due to lack of usage
  • Loading branch information
cleentfaar committed May 16, 2015
2 parents 0bdcb07 + 1316204 commit 4c9582e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 116 deletions.
63 changes: 0 additions & 63 deletions src/CL/Slack/Serializer/ModelSerializer.php

This file was deleted.

10 changes: 6 additions & 4 deletions src/CL/Slack/Tests/Model/AbstractModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
namespace CL\Slack\Tests\Model;

use CL\Slack\Model\AbstractModel;
use CL\Slack\Serializer\ModelSerializer;
use CL\Slack\Tests\AbstractTestCase;
use JMS\Serializer\Serializer;
use JMS\Serializer\SerializerBuilder;

/**
* @author Cas Leentfaar <[email protected]>
*/
abstract class AbstractModelTest extends AbstractTestCase
{
/**
* @var ModelSerializer
* @var Serializer
*/
protected $serializer;

Expand All @@ -30,7 +31,8 @@ abstract class AbstractModelTest extends AbstractTestCase
*/
protected function setUp()
{
$this->serializer = new ModelSerializer();
$metaDir = __DIR__ . '/../../Resources/config/serializer';
$this->serializer = SerializerBuilder::create()->addMetadataDir($metaDir)->build();
}

public function testGetters()
Expand All @@ -40,7 +42,7 @@ public function testGetters()

/** @var AbstractModel $model */
$model = $this->serializer->deserialize(
$modelData,
json_encode($modelData),
$modelClass,
'json'
);
Expand Down
49 changes: 0 additions & 49 deletions src/CL/Slack/Tests/Serializer/ModelSerializerTest.php

This file was deleted.

0 comments on commit 4c9582e

Please sign in to comment.