/** * 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); }
/** * get the transport * * @since 3.0.0 * * @return string */ public static function getTransport() { $transport = new Assetic\Transport(Registry::getInstance(), Language::getInstance()); return $transport->getArray(); }