Beispiel #1
0
 /**
  * @covers Timing::clearMarks
  * @covers Timing::getEntries
  */
 public function testClearMarks()
 {
     $timing = new Timing();
     $this->assertCount(1, $timing->getEntries());
     $timing->mark('a');
     $timing->mark('b');
     $this->assertCount(3, $timing->getEntries());
     $timing->clearMarks('a');
     $this->assertNull($timing->getEntryByName('a'));
     $this->assertNotNull($timing->getEntryByName('b'));
     $timing->clearMarks();
     $this->assertCount(1, $timing->getEntries());
 }