Skip to content

Commit e0ab54f

Browse files
committed
add unit test case
1 parent bec1c3f commit e0ab54f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Simple and easy to use the PHP command-line output of color
44

55

66
[![Build Status](https://travis-ci.org/wujunze/php-cli-color.svg?branch=master)](https://travis-ci.org/wujunze/php-cli-color)
7+
[![codecov](https://codecov.io/gh/wujunze/php-cli-color/branch/master/graph/badge.svg)](https://codecov.io/gh/wujunze/php-cli-color)
78

89
## Installation
910

tests/ColorTest/CliColorTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,17 @@ public function testCliColor()
2121
$this->assertEquals('Testing Colors class, this is purple string on yellow background.', $res);
2222
}
2323

24+
public function testGetBackgroundColors()
25+
{
26+
$color = $this->createServer();
27+
$colors = $color->getBackgroundColors();
28+
$this->assertNotEmpty($colors);
29+
}
30+
31+
public function testGetForegroundColors(){
32+
$color = $this->createServer();
33+
$colors = $color->getForegroundColors();
34+
$this->assertNotEmpty($colors);
35+
}
36+
2437
}

0 commit comments

Comments
 (0)