Page MenuHomeCode

SectorModifierTest.php
No OneTemporary

SectorModifierTest.php

<?php
declare(strict_types=1);
namespace Zed\Tests\Engines\Templates\Smarty\Plugins;
use GeoLocation;
require_once 'includes/geo/location.php';
class SectorModifierTest extends SmartyPluginTestCase {
public function setUp () : void {
$this->requirePlugin('modifier', 'sector');
}
public function testPluginWithValidData () {
$location = new GeoLocation("B00001002", "(4,2,7)");
$this->assertEquals("6", smarty_modifier_sector($location));
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Mar 2, 07:54 (3 w, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21641
Default Alt Text
SectorModifierTest.php (490 B)

Event Timeline