public function testResolveReturnsCorrectDecoder()
 {
     $encoderMock = $this->getMockBuilder('Brainbits\\Transcoder\\Encoder\\EncoderInterface')->getMock();
     $encoderMock->expects($this->once())->method('supports')->will($this->returnValue(true));
     $this->resolver->addEncoder($encoderMock);
     $this->resolver->resolve('test');
 }
 public function testTranscoderWasCreatedWithCreatedFactories()
 {
     $this->encoderResolverMock->resolve('encode')->willReturn($this->encoderMock);
     $this->decoderResolverMock->resolve('decode')->willReturn($this->decoderMock);
     $this->encoderMock->encode(Argument::any())->shouldBeCalled();
     $this->decoderMock->decode(Argument::any())->shouldBeCalled();
     $transcoder = $this->transcoderFactory->createTranscoder('decode', 'encode');
     $transcoder->transcode('data');
 }