Prefixes.php
<?php
namespace Liaison\Test\Addon;
class Prefixes extends \Tlf\Tester {
public function testHookOnPrefix(){
require_once($this->cli->pwd.'/test/input/Hook/Sample.php');
$lia = new \Lia();
$package = new \Lia\Package($lia, 'test:prefix');
$hooks = new \Lia\Addon\Hook($package);
$sample = new \Lia\Test\Addon\Hook\Sample($package);
$package->init_lia();
$lia->scan('on', $sample);
ob_start();
$sample->onHook_Test();
$target = ob_get_clean();
ob_start();
$hooks->call('hook.test');
$actual = ob_get_clean();
$this->compare(
$target,
$actual
);
}
}