示例#1
0
 /**
  * @covers Ringo\PhpRedmon\Model\Instance::removeLog
  * @covers Ringo\PhpRedmon\Model\Instance::getLogs
  */
 public function testRemoveLog()
 {
     $log = new Log();
     $this->object->addLog($log);
     $this->assertEquals(1, sizeof($this->object->getLogs()));
     $this->object->removeLog($log);
     $this->assertEquals(new ArrayCollection(), $this->object->getLogs());
 }