function it_recompiles_source_if_checksum_is_different(StorageInterface $storage, SourceInterface $source, ReferenceInterface $reference, ReferenceInterface $newReference) { $reference->getChecksum()->willReturn('123'); $source->getChecksum()->willReturn('111'); $storage->find($source)->willReturn($reference); $storage->store($source)->willReturn($newReference); $this->compile($source)->shouldReturn($newReference); }