getArray() public méthode

get the array
Since: 3.0.0
public getArray ( ) : array
Résultat array
 /**
  * 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);
 }
Exemple #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();
 }