25 require_once(
'./libs/composer/vendor/autoload.php');
41 $transformation = $this->basicGroup->int();
43 $this->assertInstanceOf(IntegerTransformation::class, $transformation);
48 $transformation = $this->basicGroup->string();
50 $this->assertInstanceOf(StringTransformation::class, $transformation);
55 $transformation = $this->basicGroup->float();
57 $this->assertInstanceOf(FloatTransformation::class, $transformation);
62 $transformation = $this->basicGroup->bool();
64 $this->assertInstanceOf(BooleanTransformation::class, $transformation);
71 $this->assertInstanceOf(ListTransformation::class, $transformation);
78 $this->assertInstanceOf(TupleTransformation::class, $transformation);
88 $this->assertInstanceOf(RecordTransformation::class, $transformation);
95 $this->assertInstanceOf(DictionaryTransformation::class, $transformation);
103 $transformation = $this->basicGroup->toNew((
string) MyClass::class);
105 $this->assertInstanceOf(NewObjectTransformation::class, $transformation);
113 $transformation = $this->basicGroup->toNew(array(
new MyClass(),
'myMethod'));
115 $this->assertInstanceOf(NewMethodTransformation::class, $transformation);
120 $this->expectNotToPerformAssertions();
123 $transformation = $this->basicGroup->toNew(array(
new MyClass(),
'myMethod',
'hello'));
133 $this->expectNotToPerformAssertions();
136 $transformation = $this->basicGroup->toNew(array(
new MyClass()));
149 $transformation = $this->basicGroup->data(
'alphanumeric');
151 $this->assertInstanceOf(NewMethodTransformation::class, $transformation);
153 $result = $transformation->transform(array(
'hello'));
155 $this->assertInstanceOf(Alphanumeric::class,
$result);
163 return array($this->
string, $this->integer);
testCreateDataTransformation()
testIsBooleanTransformationInstance()
testIsIntegerTransformationInstance()
testTupleOfTransformation()
Class ChatMainBarProvider .
testRecordOfTransformation()
testNewObjectTransformation()
testIsFloatTransformationInstance()
testNewMethodTransformationThrowsExceptionBecauseToManyParametersAreGiven()
testDictionaryOfTransformation()
testListOfTransformation()
testIsStringTransformationInstance()
testNewMethodTransformation()
testNewMethodTransformationThrowsExceptionBecauseToFewParametersAreGiven()