/** 
 * @backupGlobals disabled
 * @backupStaticAttributes disabled
 */
 public function test_kalkulatorTempa_11_4()
 {
     $my_activities = new my_activities();
     $this->assertEquals("Wprowadź prawidłowe wartości!", $my_activities->kalkulatorTempa(42.195, 23, 23, "abvc"));
     $this->assertEquals("Wprowadź prawidłowe wartości!", $my_activities->kalkulatorTempa(21.195, 23, 23, "1a"));
     $this->assertEquals("Wprowadź prawidłowe wartości!", $my_activities->kalkulatorTempa(10, 23, 23, "a1"));
     $this->assertEquals("Wprowadź prawidłowe wartości!", $my_activities->kalkulatorTempa(22.45, 23, 2, "Ala ma kota"));
 }
Ejemplo n.º 2
0
 /**  Test, czy funkcja zwraca poprawne nazwy sportów dla danych id.
 * @backupGlobals disabled
 * @backupStaticAttributes disabled
 */
 public function test_getSport()
 {
     $my_simpleDbCheck = new my_simpleDbCheck();
     $my_activities = new my_activities();
     foreach ($my_simpleDbCheck->getSports() as $sport) {
         $this->assertEquals($sport['nazwa_sportu'], $my_activities->getSport($sport['id_sportu']));
     }
     $this->assertEquals(0, $my_activities->getSport(-2));
     $this->assertEquals(0, $my_activities->getSport(55));
 }