public function testShouldCreateLicenseBadge()
 {
     $package = $this->getMockBuilder('\\PUGX\\Badge\\Model\\Package')->disableOriginalConstructor()->getMock();
     $package->expects($this->once())->method('getLicense')->will($this->returnValue('MIT'));
     $this->repository->expects($this->any())->method('fetchByRepository')->will($this->returnValue($package));
     $repository = 'PUGX/badge-poser';
     $badge = $this->useCase->createLicenseBadge($package);
     $this->assertEquals('MIT', $badge->getStatus());
 }
 public function testShouldCreateDownloadsBadge()
 {
     $package = $this->getMockBuilder('\\PUGX\\Badge\\Model\\Package')->disableOriginalConstructor()->getMock();
     $package->expects($this->once())->method('getPackageDownloads')->will($this->returnValue(102));
     $this->repository->expects($this->any())->method('fetchByRepository')->will($this->returnValue($package));
     $repository = 'PUGX/badge-poser';
     $badge = $this->useCase->createDownloadsBadge($repository, 'daily', 'svg');
     $this->assertEquals('102 today', $badge->getStatus());
 }