Fakerino\Test\Core\FakeDataFactoryTest::testDifferentCallsType PHP Method

testDifferentCallsType() public method

    public function testDifferentCallsType()
    {
        $res1 = (string) $this->fakeGenerator->fake('integer');
        $res2 = $this->fakeGenerator->fakeTemplate('Hello {{ surname }}');
        $res3 = $this->fakeGenerator->fake('integer')->__toString();
        $this->assertTrue(is_numeric($res1));
        $this->assertInternalType('string', $res2);
        $this->assertContains('Hello', $res2);
        $this->assertTrue(is_numeric($res3));
    }