rewrite test after Tlog refactoring
This commit is contained in:
@@ -56,6 +56,9 @@ class TlogDestinationFile extends AbstractTlogDestination
|
||||
if (! is_dir($dir)) {
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
|
||||
touch($file_path);
|
||||
chmod($file_path, 0777);
|
||||
}
|
||||
|
||||
if ($this->fh) @fclose($this->fh);
|
||||
|
||||
@@ -27,22 +27,22 @@ use Thelia\Log\AbstractTlogDestination;
|
||||
|
||||
class TlogDestinationNull extends AbstractTlogDestination
|
||||
{
|
||||
public function get_titre()
|
||||
public function getTitle()
|
||||
{
|
||||
return "Trou noir";
|
||||
}
|
||||
|
||||
public function get_description()
|
||||
public function getDescription()
|
||||
{
|
||||
return "Cette destination ne provoque aucune sortie";
|
||||
}
|
||||
|
||||
public function ajouter($string)
|
||||
public function add($string)
|
||||
{
|
||||
// Rien
|
||||
}
|
||||
|
||||
public function ecrire(&$res)
|
||||
public function write(&$res)
|
||||
{
|
||||
// Rien
|
||||
}
|
||||
|
||||
@@ -32,22 +32,22 @@ class TlogDestinationText extends AbstractTlogDestination
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function get_titre()
|
||||
public function getTitle()
|
||||
{
|
||||
return "Affichage direct dans la page, en texte brut";
|
||||
}
|
||||
|
||||
public function get_description()
|
||||
public function getDescription()
|
||||
{
|
||||
return "Permet d'afficher les logs directement dans la page resultat, au format texte brut.";
|
||||
}
|
||||
|
||||
public function ajouter($texte)
|
||||
public function add($texte)
|
||||
{
|
||||
echo $texte."\n";
|
||||
}
|
||||
|
||||
public function ecrire(&$res)
|
||||
public function write(&$res)
|
||||
{
|
||||
// Rien
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user