コード例 #1
0
ファイル: EventsTest.php プロジェクト: EightArmCode/librarian
 public function testClearWillMakeListEmpty()
 {
     $event = $this->getMockBuilder(Event::class)->getMock();
     $instance = new Events([$event]);
     self::assertCount(1, $instance->getIterator());
     $instance->clear();
     self::assertCount(0, $instance->getIterator());
 }
コード例 #2
0
 /**
  */
 public function markChangesCommitted()
 {
     $this->changes->clear();
 }