Skip to content
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

Fix for declaring test case in data provider #2834

Merged
merged 3 commits into from Nov 10, 2017
Merged

Fix for declaring test case in data provider #2834

merged 3 commits into from Nov 10, 2017

Conversation

kubawerlos
Copy link
Contributor

<?php
use PHPUnit\Framework\TestCase;

class FirstTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

<?php
use PHPUnit\Framework\TestCase;

class SecondTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

@codecov-io
Copy link

codecov-io commented Oct 29, 2017

Codecov Report

Merging #2834 into 5.7 will decrease coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##                5.7    #2834      +/-   ##
============================================
- Coverage     51.18%   51.18%   -0.01%     
- Complexity     2912     2913       +1     
============================================
  Files           110      110              
  Lines          9706     9710       +4     
============================================
+ Hits           4968     4970       +2     
- Misses         4738     4740       +2
Impacted Files Coverage Δ Complexity Δ
src/Framework/TestSuite.php 68.48% <66.66%> (-0.16%) 150 <0> (+1)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58cdc63...539f311. Read the comment docs.

<?php
use PHPUnit\Framework\TestCase;

class FirstTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

<?php
use PHPUnit\Framework\TestCase;

class SecondTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

<?php
use PHPUnit\Framework\TestCase;

class FirstTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

<?php
use PHPUnit\Framework\TestCase;

class SecondTest extends TestCase

Choose a reason for hiding this comment

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

Each class must be in a namespace of at least one level (a top-level vendor name)

@kubawerlos
Copy link
Contributor Author

Ping @sebastianbergmann

@sebastianbergmann
Copy link
Owner

Can you please send a pull request against 5.7? Thanks!

@kubawerlos kubawerlos changed the base branch from master to 5.7 November 9, 2017 09:43
@kubawerlos
Copy link
Contributor Author

@sebastianbergmann done

@@ -292,6 +292,12 @@ public function addTestSuite($testClass)
*/
public function addTestFile($filename)
{
static $declaredClasses;
Copy link
Owner

Choose a reason for hiding this comment

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

Please do not use a method-local, static variable here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sebastianbergmann done, changed to private, dynamic one.

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.

None yet

4 participants