Airship\UnitTests\AirshipTest::testTempNam PHP 메소드

testTempNam() 공개 메소드

public testTempNam ( )
    public function testTempNam()
    {
        $name = \Airship\tempnam();
        $name2 = \Airship\tempnam('foo-');
        $name3 = \Airship\tempnam('foo-', 'txt');
        $this->assertFileNotExists($name);
        $this->assertFileNotExists($name2);
        $this->assertFileNotExists($name3);
        $this->assertSame('foo-', Binary::safeSubstr(\Airship\path_to_filename($name3), 0, 4));
        $this->assertSame('.txt', Binary::safeSubstr($name3, -4));
    }