HomeDevCentral

Base unit test case for service providers

Description

Base unit test case for service providers

Summary:
To tests our service providers, we provide a generic TestCase
with the following assertion method:

public function assertServiceInstanceOf ($expectedType, $serviceName)

It checks if the type of the specified service from the application
container is an instance of the expected type.

Test Plan:

BrokerServiceProviderTest::testType()
$this->assertServiceInstanceOf(
    'Keruald\Broker\Broker',
    'broker'
);

Reviewers: dereckson

Subscribers: alken-orin

Differential Revision: http://devcentral.nasqueron.org/D229

Details

Provenance
derecksonAuthored on
Differential Revision
D229: Base unit test case for service providers
Parents
rNOTIF9938dca7ebd3: Test DockerHub gate controller
Branches
Unknown
Tags
Unknown