getArray() public method

get the array
Since: 3.0.0
public getArray ( ) : array
return array
示例#1
0
 /**
  * testGetArray
  *
  * @since 3.0.0
  */
 public function testGetArray()
 {
     /* setup */
     $transport = new Assetic\Transport($this->_registry, $this->_language);
     /* actual */
     $actualArray = $transport->getArray();
     /* compare */
     $this->assertArrayHasKey('baseURL', $actualArray);
     $this->assertArrayHasKey('generator', $actualArray);
     $this->assertArrayHasKey('language', $actualArray);
     $this->assertArrayHasKey('registry', $actualArray);
     $this->assertArrayHasKey('version', $actualArray);
 }
示例#2
0
 /**
  * get the transport
  *
  * @since 3.0.0
  *
  * @return string
  */
 public static function getTransport()
 {
     $transport = new Assetic\Transport(Registry::getInstance(), Language::getInstance());
     return $transport->getArray();
 }