Determine whether a service is an object.
public serviceIsObject ( mixed $service ) : boolean | ||
$service | mixed | |
return | boolean |
public function testThatAServiceCanBeIdentifiedAsAnObject() { $command = new Command(); $result = $command->serviceIsObject(3); $this->assertFalse($result); $result = $command->serviceIsObject(new stdClass()); $this->assertTrue($result); }