Advertisement
sanjiisan

Untitled

Sep 6th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. require __DIR__ . '/../zadanie1.php';
  4.  
  5. use PHPUnit\Framework\TestCase;
  6.  
  7. class LeapTest extends TestCase
  8. {
  9. public function testLeap()
  10. {
  11. $this->assertFalse(
  12. isYearLeap()
  13. );
  14.  
  15. $this->assertEquals(
  16. 0,
  17. isYearLeap(2011)
  18. );
  19.  
  20. $this->assertEquals(
  21. 1,
  22. isYearLeap(2012)
  23. );
  24.  
  25. $this->assertFalse(
  26. isYearLeap('jestemPaweł')
  27. );
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement