Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Application/ApiYamlTest.php
Nicolas Le Goff e5b8817c46 PHP CS fix
2014-05-30 15:22:00 +02:00

29 lines
582 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Application;
class ApiYamlTest extends ApiAbstract
{
public function getParameters(array $parameters = array())
{
return $parameters;
}
public function unserialize($data)
{
try {
$ret = \Symfony\Component\Yaml\Yaml::parse($data);
} catch (\Exception $e) {
$this->fail("Unable to parse data : \n" . $data . "\nexception : " . $e->getMessage() . "\n");
}
return $ret;
}
public function getAcceptMimeType()
{
return 'text/yaml';
}
}