public function getServiceDescription($service) { if ($this->serviceIsObject($service)) { return get_class($service); } return $this->formatServiceDescription($service, is_scalar($service)); }
public function testAnObjectServiceDescriptionCanBeRetrieved() { $command = new Command(); $obj = new stdClass(); $description = $command->getServiceDescription($obj); $this->assertEquals('stdClass', $description); }