-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the SnideTravinizer bundle. | ||
* | ||
* (c) Pascal DENIS <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Snide\Bundle\TravinizerBundle\Tests\Helper; | ||
|
||
use Snide\Bundle\TravinizerBundle\Helper\InsightHelper; | ||
use Snide\Bundle\TravinizerBundle\Model\Repo; | ||
|
||
/** | ||
* Class TravisLoaderTest | ||
* | ||
* @author Pascal DENIS <[email protected]> | ||
*/ | ||
class InsightHelperTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var InsightHelper | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->object = new InsightHelper(); | ||
} | ||
|
||
public function testGetUrl() | ||
{ | ||
$url = 'https://insight.sensiolabs.com/projects/aSimpleHash'; | ||
$this->assertEquals($url, $this->object->getUrl('aSimpleHash')); | ||
} | ||
|
||
public function testGetBadgeUrl() | ||
{ | ||
$url = 'https://insight.sensiolabs.com/projects/aSimpleHash/mini.png'; | ||
$this->assertEquals($url, $this->object->getBadgeUrl('aSimpleHash', 'mini')); | ||
} | ||
} |