Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . '/../zadanie2.php';
- use PHPUnit\Framework\TestCase;
- class NumberTest extends TestCase
- {
- public function testLeap()
- {
- $this->assertEquals(
- 'trzynaście',
- numToTxt(13)
- );
- $this->assertEquals(
- 'zero',
- numToTxt(0)
- );
- $this->assertFalse(
- numToTxt('Kubuś')
- );
- }
- public function testLeap2()
- {
- $this->assertEquals(
- 'sto dwadzieścia trzy',
- numToTxt(123)
- );
- $this->assertFalse(
- numToTxt(1001)
- );
- $this->assertEquals(
- 'jeden',
- numToTxt(1)
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement