1,6 → 1,8 |
<?php |
class Iso6391LanguesTest extends ServicesTestsOutils { |
require_once dirname(__FILE__).'/../ServiceEflorePhpUnit.php'; |
|
class Iso6391LanguesTest extends ServiceEflorePhpUnit { |
|
public function __construct() { |
$this->projet = 'iso-639-1'; |
$this->service = 'langues'; |
11,7 → 13,7 |
$parametres = array(); |
$url = $this->creerUrl($ressources, $parametres); |
$retour = $this->consulterJson($ressources, $parametres); |
|
echo print_r($retour, true).'ici'; |
$this->assertArrayHasKey('id', $retour, "Le json ne contient pas d'attribut : id. Voir : $url"); |
$this->assertEquals('fr', $retour['id'], "L'attribut 'id' devrait avoir la valeur 'fr'. Voir : $url"); |
$this->assertArrayHasKey('nom.fr', $retour, "Le json ne contient pas d'attribut : nom.fr. Voir : $url"); |