Skip to content

Commit 1348782

Browse files
committed
Add coverage in Travis
1 parent e6a4535 commit 1348782

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before_script:
1717
- ./cc-test-reporter before-build
1818

1919
script:
20-
- vendor/bin/phpunit
20+
- vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-text
2121

2222
after_success:
2323
- bash <(curl -s https://codecov.io/bash)

tests/Carbon/CliTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@ public function testGetCommands()
2020
'macro' => Macro::class,
2121
], (new Cli())->getCommands());
2222
}
23+
24+
/**
25+
* @covers ::getPackageName
26+
*/
27+
public function testGetPackageName()
28+
{
29+
$this->assertSame('nesbot/carbon', (new Cli())->getPackageName());
30+
}
2331
}

0 commit comments

Comments
 (0)