PHP Class PUGX\StatsBundle\Tests\FunctionalControllerTest

Inheritance: extends PUGX\StatsBundle\Test\StatsFunctionalTest
Show file Open project: pugx/badge-poser

Protected Properties

Property Type Description
$packagistClient

Public Methods

Method Description
provider ( )
setUp ( ) this setUp fake the request/response, if you comment this function the test'd run only with internet connection
testOnDownloadsActionStatisticShouldBeCreated ( )
testOnHomeActionStatisticShouldNotBeCreated ( $path )
testOnLatestStableActionStatisticShouldBeCreated ( )
testOnLatestUnstableActionStatisticShouldBeCreated ( )

Private Methods

Method Description
createPackagistClient ( $data, $status = 200 )

Method Details

provider() public method

public provider ( )

setUp() public method

this setUp fake the request/response, if you comment this function the test'd run only with internet connection
public setUp ( )

testOnDownloadsActionStatisticShouldBeCreated() public method

testOnHomeActionStatisticShouldNotBeCreated() public method

testOnLatestStableActionStatisticShouldBeCreated() public method

testOnLatestUnstableActionStatisticShouldBeCreated() public method

Property Details

$packagistClient protected property

protected $packagistClient