File tree 9 files changed +150
-2
lines changed
9 files changed +150
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## Contributing
2
+
3
+ Before submitting an issue or PR, take a moment to look through the issue and PR queue to ensure it hasn't previously been submitted.
Original file line number Diff line number Diff line change
1
+ <!-- - Provide a succinct summary of the issue in the title above -->
2
+
3
+ ### Issue links
4
+ <!-- - Provide links to related issues -->
5
+
6
+ ### Expected behavior
7
+ <!-- - Describe what should happen -->
8
+
9
+ ### Actual behavior
10
+ <!-- - Describe what happens instead of the expected behavior -->
11
+
12
+ ### Steps to reproduce
13
+ <!-- - Provide a link to a live example, steps to reproduce or code example-->
14
+ 1 .
15
+ 2 .
16
+ 3 .
17
+
18
+ ### Context
19
+ <!-- - How has this issue affected you (include sites and projects)? -->
20
+ <!-- - What are you trying to accomplish? -->
21
+ <!-- - Were there recent changes that could affect this issue? -->
22
+ <!-- - Include links to screenshots -->
23
+
24
+ ### Possible solution
25
+ <!-- - Suggest a fix for the issue -->
Original file line number Diff line number Diff line change
1
+ <!-- - Provide a succinct summary of the issue in the title above -->
2
+
3
+ ### Issue links
4
+ <!-- - Provide links to related issues -->
5
+
6
+ ### Description
7
+ <!-- - Provide an overview of the change being made -->
Original file line number Diff line number Diff line change
1
+ # @file
2
+ # .travis.yml - Metrics PHP library Travis CI Integration.
3
+ #
4
+
5
+ language : php
6
+
7
+ php :
8
+ - 7.1
9
+
10
+ matrix :
11
+ fast_finish : true
12
+
13
+ # Skip tests for tags.
14
+ if : tag IS blank
15
+
16
+ env :
17
+ global :
18
+ # Set the composer vendor Path.
19
+ - COMPOSER_VENDOR_PATH="$HOME/.composer/vendor"
20
+
21
+ # Add executables into PATH.
22
+ - PATH="$PATH:$COMPOSER_VENDOR_PATH/bin"
23
+
24
+ before_install :
25
+ - composer self-update
26
+
27
+ install :
28
+ - composer global require "squizlabs/php_codesniffer=*"
29
+ - composer global require escapestudios/symfony2-coding-standard:~3
30
+ - phpcs --config-set installed_paths "$COMPOSER_VENDOR_PATH/escapestudios/symfony2-coding-standard"
31
+
32
+ before_script :
33
+ - composer install -vvv
34
+
35
+ script :
36
+ - phpcs --ignore=vendor/* --standard=Symfony --warning-severity=0 .
37
+ - phpunit --configuration phpunit.xml
Original file line number Diff line number Diff line change 1
- # metrics
2
- PHP library that abstracts different metrics collectors
1
+ # Metrics
2
+
3
+ ## Overview
4
+ * Update this with a package description.*
5
+
6
+ ## Installation
7
+
8
+ * Update this with a package installation.*
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " edisonlabs/metrics" ,
3
+ "type" : " library" ,
4
+ "description" : " PHP library that abstracts different metrics collectors." ,
5
+ "license" : " GPL-2.0+" ,
6
+ "autoload" : {
7
+ "psr-4" : {
8
+ "edison\\ metrics\\ " : " src/"
9
+ }
10
+ },
11
+ "require-dev" : {
12
+ "phpunit/phpunit" : " ^6.5"
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <phpunit backupGlobals =" false"
4
+ backupStaticAttributes =" false"
5
+ bootstrap =" vendor/autoload.php"
6
+ colors =" true"
7
+ convertErrorsToExceptions =" true"
8
+ convertNoticesToExceptions =" true"
9
+ convertWarningsToExceptions =" true"
10
+ processIsolation =" false"
11
+ stopOnFailure =" false"
12
+ syntaxCheck =" false"
13
+ >
14
+
15
+ <testsuites >
16
+ <testsuite name =" metrics's test suit" >
17
+ <directory >./tests/</directory >
18
+ </testsuite >
19
+ </testsuites >
20
+
21
+ </phpunit >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace edisonlabs \metrics ;
4
+
5
+ /**
6
+ * Main class for metrics.
7
+ *
8
+ * @group metrics
9
+ */
10
+ class Metrics
11
+ {
12
+
13
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace edisonlabs \metrics \Unit ;
4
+
5
+ use PHPUnit \Framework \TestCase ;
6
+
7
+ /**
8
+ * Tests generation of metrics.
9
+ *
10
+ * @group metrics
11
+ */
12
+ class MetricsTest extends TestCase
13
+ {
14
+
15
+ /**
16
+ * Basic test to get success result.
17
+ */
18
+ public function testMetrics ()
19
+ {
20
+ $ this ->assertTrue (true );
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments