Skip to content

test that journal is set up correctly #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2016
Merged

test that journal is set up correctly #118

merged 1 commit into from
Aug 12, 2016

Conversation

dbu
Copy link
Collaborator

@dbu dbu commented Aug 12, 2016

Q A
Bug fix? no
New feature? no (only tests added)
BC breaks? no
Deprecations? no
Related tickets Test to prevent regression in #112
Documentation -
License MIT

What's in this PR?

A test about the debug toolbar because tests in #112 where green but the toolbar broken.

Why?

We should prevent regressions.

$journal = $collector->getJournal();
$plugins = $journal->getPlugins('acme');
$this->assertEquals([
'httplug.plugin.stopwatch',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nyholm its expected that the journal also tracks the stopwatch, right? or should we hide that from the journal?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, The stopwatch plugin should always be available when we do profiling.

It should not be hidden from the journal.

@Nyholm
Copy link
Member

Nyholm commented Aug 12, 2016

Awesome @dbu. Thank you!

@Nyholm Nyholm merged commit ec48ab0 into master Aug 12, 2016
@Nyholm Nyholm deleted the test-journal branch August 12, 2016 09:46
@sagikazarmark sagikazarmark modified the milestone: v1.3.0 Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants