GetSmsCostTest.php
/**
     * Method checks that sms cost is 
     * recognized in a right way, it
     * is using data provider to know
     * what cost is right
     * 
     * @access  public
     * @param   string  $number SMS number
     * @param   float   $tax    Tax rate
     * @param   float   $expectedNetto  Expected netto price
     * @param   float   $expectedBrutto Expected brutto price
     * @return  void
     * @dataProvider getValidNumbers
     */
Method checks that sms cost is
recognized in a right way, it
is using data provider to know
what cost is right


Method checks that sms cost is recognized in a right way it is using data provider to know what cost is right
public function testRecognizingNumbers($number, $tax, $expectedNetto, $expectedBrutto)
    {
        $actualNetto  = getSmsCost($number, null);
        $actualBrutto = getSmsCost($number, $tax);
        $this->assertEquals($expectedNetto, $actualNetto);
        $this->assertEquals($expectedBrutto, $actualBrutto);
    }
public function testRecognizingNumbers ( $ number , $ tax , $ expectedNetto , $ expectedBrutto ) { $ actualNetto = getSmsCost ( $ number , null ) ; $ actualBrutto = getSmsCost ( $ number , $ tax ) ; $ this -> assertEquals ( $ expectedNetto , $ actualNetto ) ; $ this -> assertEquals ( $ expectedBrutto , $ actualBrutto ) ; }
Method checks that sms cost is
 recognized in a right way, it
 is using data provider to know
 what cost is right
Method checks that sms cost is recognized in a right way it is using data provider to know what cost is right