You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertFalse($this->transformerFactory->transformableResponse(['foo' => 'bar']), 'Testing that an array is not transformable.');
32
+
$this->assertFalse($this->transformerFactory->transformableResponse(newstdClass), 'Testing that a class with no binding is not transformable.');
33
+
$this->assertFalse($this->transformerFactory->transformableResponse('Foo'), 'Testing that a string with no binding is not transformable.');
34
+
$this->assertFalse($this->transformerFactory->transformableResponse(1), 'Testing that an integer is not transformable.');
35
+
$this->assertFalse($this->transformerFactory->transformableResponse(true), 'Testing that a boolean is not transformable.');
36
+
$this->assertFalse($this->transformerFactory->transformableResponse(false), 'Testing that a boolean is not transformable.');
37
+
$this->assertFalse($this->transformerFactory->transformableResponse(31.1), 'Testing that a float is not transformable.');
38
+
$this->assertFalse($this->transformerFactory->transformableResponse(newIlluminate\Support\Collection([newFoo, newFoo])), 'Testing that a collection with instances that have no binding are not transformable.');
$this->assertTrue($this->transformerFactory->transformableResponse('Foo'), 'Testing that a string with a binding is transformable.');
41
+
$this->assertTrue($this->transformerFactory->transformableResponse(newBar), 'Testing that an instance that is bound by a contract is transformable.');
42
+
$this->assertTrue($this->transformerFactory->transformableResponse(newIlluminate\Support\Collection([newBar, newBar])), 'Testing that a collection with instances bound by a contract are transformable.');
43
+
$this->assertTrue($this->transformerFactory->transformableResponse(newIlluminate\Support\Collection([newFoo, newFoo])), 'Testing that a collection with instances that have a binding are transformable.');
0 commit comments