32 $this->assertCount( 1, $timing->getEntries() );
36 $this->assertCount( 3, $timing->getEntries() );
38 $timing->clearMarks(
'a' );
39 $this->assertNull( $timing->getEntryByName(
'a' ) );
40 $this->assertNotNull( $timing->getEntryByName(
'b' ) );
42 $timing->clearMarks();
43 $this->assertCount( 1, $timing->getEntries() );
54 $entry = $timing->getEntryByName(
'a' );
55 $this->assertEquals(
'a', $entry[
'name'] );
56 $this->assertEquals(
'mark', $entry[
'entryType'] );
57 $this->assertArrayHasKey(
'startTime', $entry );
58 $this->assertEquals( 0, $entry[
'duration'] );
62 $newEntry = $timing->getEntryByName(
'a' );
63 $this->assertGreaterThan( $entry[
'startTime'], $newEntry[
'startTime'] );