-
Notifications
You must be signed in to change notification settings - Fork 32
update phpunit #127
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
update phpunit #127
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,19 @@ | |
|
||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about referencing the schema by a relative URL? -xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
+xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" This way it will always be accurate, regardless of which version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't know this is possible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
failOnWarning="true" | ||
bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="PHP test reporter test suite"> | ||
|
@@ -19,7 +23,7 @@ | |
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true"> | ||
<directory>./src</directory> | ||
<exclude> | ||
<directory>./composer</directory> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
use CodeClimate\PhpTestReporter\Application; | ||
use Symfony\Component\Console\Tester\ApplicationTester; | ||
|
||
class ApplicationTest extends \PHPUnit_Framework_TestCase | ||
class ApplicationTest extends \PHPUnit\Framework\TestCase | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha, nice, wasn't aware it's been backported to |
||
{ | ||
const PROJECT_DIR = "/tmp/php-test-reporter-example-project"; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thing, how about making it more obvious which minor versions we are fine with?
This way it is very accurately documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done