QualityOfLife.php
<?php
namespace Tlf\Tester\Test;
/**
* @note(12-16-2021) tests new quality of life features
*
*/
class QualityOfLife extends \Tlf\Tester {
/**
*
* @test $lia->packages['package_name']
* @test $package->addons['addon_name']
* @test $lia->addon_name
* @test $lia->addon('ns:package.addon_name')
*/
public function testAddon__get(){
$_SERVER['REQUEST_URI'] = '/';
$lia = new \Lia();
$target_server = new \Lia\Package\Server($lia);
$actual_server = $lia->packages['server'];
$this->compare_objects($target_server, $actual_server);
$target_views = $target_server->addons['view'];
$actual_views = $lia->view;
$this->compare_objects($target_views, $actual_views);
$actual_views = $lia->addon('lia:server.view');
$this->compare_objects($target_views, $actual_views);
}
}