Airship\UnitTests\AirshipTest::testTempNam PHP Method

testTempNam() public method

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