6require_once(
'./libs/composer/vendor/autoload.php');
30 $transformedValue = $this->transformation->transform($originVal);
31 $this->assertIsString($transformedValue);
32 $this->assertEquals($expectedVal, $transformedValue);
37 $obj =
new class extends \StdClass {
38 public function __toString()
44 'string_val' => [
'hello',
'hello'],
45 'int_val' => [300,
'300'],
46 'neg_int_val' => [-300,
'-300'],
47 'zero_int_val' => [0,
'0'],
48 'pos_bool' => [
true,
'true'],
49 'neg_bool' => [
false,
'false'],
50 'float_val' => [20.5,
'20.5'],
51 'object_val' => [$obj,
'an object']
An exception for terminatinating execution or to throw for unit testing.