serviceIsObject() 공개 메소드

Determine whether a service is an object.
public serviceIsObject ( mixed $service ) : boolean
$service mixed
리턴 boolean
예제 #1
0
 public function testThatAServiceCanBeIdentifiedAsAnObject()
 {
     $command = new Command();
     $result = $command->serviceIsObject(3);
     $this->assertFalse($result);
     $result = $command->serviceIsObject(new stdClass());
     $this->assertTrue($result);
 }