getLaboratory() 공개 메소드

Retrieve the laboratory instance.
public getLaboratory ( ) : Laboratory | null
리턴 Laboratory | null
예제 #1
0
 public function test_that_an_experiment_laboratory_can_be_set()
 {
     $l = new Laboratory();
     $e = new Experiment('test experiment', $l);
     $this->assertInstanceOf('\\Scientist\\Laboratory', $e->getLaboratory());
     $this->assertSame($l, $e->getLaboratory());
 }
예제 #2
0
 public function test_that_an_experiment_laboratory_can_be_set()
 {
     $e = new Experiment('test experiment');
     $l = new Laboratory();
     $e->setLaboratory($l);
     $this->assertInstanceOf(Laboratory::class, $e->getLaboratory());
     $this->assertSame($l, $e->getLaboratory());
 }