Redaxscript\Template\Helper::getTransport PHP Method

getTransport() public static method

get the transport
Since: 3.0.0
public static getTransport ( ) : string
return string
    public static function getTransport()
    {
        $transport = new Assetic\Transport(Registry::getInstance(), Language::getInstance());
        return $transport->getArray();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * testGetTransport
  *
  * @since 3.0.0
  */
 public function testGetTransport()
 {
     /* actual */
     $actualArray = Template\Helper::getTransport();
     /* compare */
     $this->assertArrayHasKey('baseURL', $actualArray);
     $this->assertArrayHasKey('generator', $actualArray);
     $this->assertArrayHasKey('language', $actualArray);
     $this->assertArrayHasKey('registry', $actualArray);
     $this->assertArrayHasKey('version', $actualArray);
 }