$this->reset();
}
+ /**
+ * Start a profiler recording
+ *
+ * @param string $value
+ * @return void
+ */
public function startRecording(string $value)
{
if (!$this->enabled) {
$this->timestamps[] = ['value' => $value, 'stamp' => microtime(true), 'credit' => 0];
}
+ /**
+ * Stop a profiler recording
+ *
+ * @param string $callstack
+ * @return void
+ */
public function stopRecording(string $callstack = '')
{
if (!$this->enabled || empty($this->timestamps)) {
->andReturn($root->url());
$this->profilerMock = \Mockery::mock(Profiler::class);
+ $this->profilerMock->shouldReceive('startRecording');
+ $this->profilerMock->shouldReceive('stopRecording');
$this->profilerMock->shouldReceive('saveTimestamp');
$this->dice->shouldReceive('create')
->with(Profiler::class)