public function test_to_string() { $string = new String('testing toString'); Should::eq('testing toString', (string) $string); }
public function test_can_be_round() { $decimal = new Decimal(3.33); Should::eq(3.0, $decimal->round()->value); $decimal = new Decimal(3.55); Should::eq(4.0, $decimal->round()->value); $decimal = new Decimal(3.49); Should::eq(3.0, $decimal->round()->value); }
public function testAdd() { Assert::equals(20, 20); Assert::greaterThan(20, 21); Should::equal('Test', 'Test'); }