Skip to content

Commit 79ac121

Browse files
committed
PHPUnit bootstrap file and minor fixes
1 parent 882c1f7 commit 79ac121

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

LuhnAlgorithm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
*/
2525

2626
/**
27-
* Apply the Luhn Algorithm to a number.
27+
* Apply the Luhn Algorithm to a number
2828
*
2929
* @link http://en.wikipedia.org/wiki/Luhn_algorithm
3030
* @author Niklas Ekman <nikl.ekman@gmail.com>
31-
* @version 2014-02-07
31+
* @package nekman/luhn-algorithm
3232
*/
3333
class LuhnAlgorithm {
3434

File renamed without changes.

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
{
22
"name": "nekman/luhn-algorithm",
33
"type": "library",
4-
"description": "Implementation of the Luhn algorithm in PHP",
4+
"description": "Implementation of the Luhn algorithm in PHP. Used in validation of credit card numbers and some national identification numbers.",
55
"keywords": [
66
"luhn",
77
"credit card",
88
"identification number",
99
"validation"
1010
],
11-
"homepage": "https://github.com/Ekman/Luhn-Algorithm",
1211
"license": "MIT",
1312
"authors": [
1413
{
1514
"name": "Niklas Ekman",
1615
"email": "nikl.ekman@gmail.com",
17-
"homepage": "http://www.codr.se",
18-
"role": "Developer"
16+
"homepage": "http://www.codr.se"
1917
}
2018
],
2119
"support": {

tests/LuhnAlgorithmTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
require_once(dirname(__FILE__) . "/../LuhnAlgorithm.php");
4-
53
/**
64
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-02-04 at 21:57:34.
75
*/

tests/bootstrap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/**
4+
* Bootstrap file for PHP unit tests
5+
*/
6+
7+
require_once(dirname(__FILE__) . "/../LuhnAlgorithm.php");
8+

0 commit comments

Comments
 (0)