Fakerino\Test\Core\FakeDataFactoryTest::testDifferentCallsType PHP 메소드

testDifferentCallsType() 공개 메소드

    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));
    }