Skip to content

Commit

Permalink
insight helper test
Browse files Browse the repository at this point in the history
  • Loading branch information
pdenis committed May 18, 2014
1 parent 904e1af commit 0fad5a3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Tests/Helper/InsightHelperTest.php
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'));
}
}

0 comments on commit 0fad5a3

Please sign in to comment.