Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . '/../zadanie1.php';
- use PHPUnit\Framework\TestCase;
- class LeapTest extends TestCase
- {
- public function testLeap()
- {
- $this->assertFalse(
- isYearLeap()
- );
- $this->assertEquals(
- 0,
- isYearLeap(2011)
- );
- $this->assertEquals(
- 1,
- isYearLeap(2012)
- );
- $this->assertFalse(
- isYearLeap('jestemPaweł')
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement