assertEquals('value', $encoder->encode('value')); } /** * Test encoder with Http MediaAsset */ public function testEncodeHttpMediaAsset() { $encoder = new NoneEncoder(); $url = 'https://www.taotesting.com/wp-content/uploads/2014/09/oat-header-logo.png'; $asset = new MediaAsset(new HttpSource(), $url); $this->assertEquals($url, $encoder->encode($asset)); } /** * Test encoder with MediaAsset */ public function testEncodeMediaAsset() { $encoder = new NoneEncoder(); $url = 'assets/test.png'; $asset = new MediaAsset(new LocalItemSource([]), $url); $this->assertEquals(basename($url), $encoder->encode($asset)); } }