30 $this->assertCount( 1, $timing->getEntries() );
34 $this->assertCount( 3, $timing->getEntries() );
36 $timing->clearMarks(
'a' );
37 $this->assertNull( $timing->getEntryByName(
'a' ) );
38 $this->assertNotNull( $timing->getEntryByName(
'b' ) );
40 $timing->clearMarks();
41 $this->assertCount( 1, $timing->getEntries() );
52 $entry = $timing->getEntryByName(
'a' );
53 $this->assertEquals(
'a', $entry[
'name'] );
54 $this->assertEquals(
'mark', $entry[
'entryType'] );
55 $this->assertArrayHasKey(
'startTime', $entry );
56 $this->assertEquals( 0, $entry[
'duration'] );
60 $newEntry = $timing->getEntryByName(
'a' );
61 $this->assertGreaterThan( $entry[
'startTime'], $newEntry[
'startTime'] );