public function testConstructor() { $client = new Client(); $hydrator = new APIHydrator([], null); $collection = new Collection(); $service = new TestService($client, $hydrator, $collection); $this->assertSame($client, $service->getClient()); $this->assertSame($hydrator, $service->getHydrator()); $this->assertAttributeEquals($collection, 'collectionPrototype', $service); }