| @@ 21-29 (lines=9) @@ | ||
| 18 | ||
| 19 | class PnaTest extends TestCase |
|
| 20 | { |
|
| 21 | public function testPnaValidShort() |
|
| 22 | { |
|
| 23 | $defNr = '90019'; |
|
| 24 | $this->assertTrue(Pna::isValid($defNr, false)); |
|
| 25 | $res = new Pna($defNr); |
|
| 26 | $this->assertEquals('90019', $res->get()); |
|
| 27 | $this->assertEquals('90019', $res->getShort()); |
|
| 28 | $this->assertEquals('90-019', $res->getLong()); |
|
| 29 | } |
|
| 30 | public function testPnaValidLong() |
|
| 31 | { |
|
| 32 | $defNr = '90-019'; |
|
| @@ 30-38 (lines=9) @@ | ||
| 27 | $this->assertEquals('90019', $res->getShort()); |
|
| 28 | $this->assertEquals('90-019', $res->getLong()); |
|
| 29 | } |
|
| 30 | public function testPnaValidLong() |
|
| 31 | { |
|
| 32 | $defNr = '90-019'; |
|
| 33 | $this->assertTrue(Pna::isValid($defNr, false)); |
|
| 34 | $res = new Pna($defNr); |
|
| 35 | $this->assertEquals('90019', $res->get()); |
|
| 36 | $this->assertEquals('90019', $res->getShort()); |
|
| 37 | $this->assertEquals('90-019', $res->getLong()); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testCreate() |
|
| 41 | { |
|