private function assertCdnResponse(CDN $cdn, $expectedId) { $this->assertTrue($cdn instanceof CDN); $this->assertEquals("cdn.cdnhub.com", $cdn->getUrl()); $this->assertEquals(2880, $cdn->getCacheExpiration()); $this->assertEquals($expectedId, $cdn->getId()); }
/** * @param \AFM\Cdn77\CDN $cdn */ public function setCdn(CDN $cdn) { $this->cdn = $cdn; $this->params['id'] = $cdn->getId(); }