예제 #1
0
파일: RackTest.php 프로젝트: tchern0/LabDB
 public function testStorageUnit()
 {
     $rack = new Rack();
     $incubator = new Incubator();
     $incubator->setTemperature(28);
     $this->assertNull($rack->getStorageUnit());
     $rack->setStorageUnit($incubator);
     $this->assertEquals($incubator, $rack->getStorageUnit());
     return $rack;
 }
예제 #2
0
파일: VialTest.php 프로젝트: tchern0/LabDB
 protected function getPosition()
 {
     $incubator = new Incubator();
     $incubator->setName('Test');
     $incubator->setTemperature(28);
     $rack = new Rack(1, 1);
     $rack->setStorageUnit($incubator);
     return new RackPosition($rack, 1, 1);
 }