lithium\tests\cases\net\http\MediaTest::testMultipleHostsPickSameHostForIdenticalAsset PHP Method

testMultipleHostsPickSameHostForIdenticalAsset() public method

    public function testMultipleHostsPickSameHostForIdenticalAsset()
    {
        Media::attach('cdn', array('absolute' => true, 'host' => array('cdn.com', 'cdn.org'), 'scheme' => 'http://'));
        $first = Media::asset('style.css', 'css', array('scope' => 'cdn'));
        $second = Media::asset('style.css', 'css', array('scope' => 'cdn'));
        $third = Media::asset('style.css', 'css', array('scope' => 'cdn'));
        $this->assertIdentical($first, $second);
        $this->assertIdentical($third, $second);
    }