/** * @param \HHPnet\Core\Domain\Songs\Song $song * @param HHPnet\Core\Domain\Albums\AlbumId $album_id */ public function let(Song $song, AlbumId $album_id) { $album_id->__toString()->willReturn('1'); $song->getId()->willReturn(1); $song->getAlbumId()->willReturn($album_id); $song->getName()->willReturn('name'); $song->getType()->willReturn('type'); $song->getPath()->willReturn('path'); $this->beConstructedWith($song); }
/** * @return string */ public function name() { return $this->song->getName(); }