CacheTool\Command\ApcBinDumpCommandTest::testCommandWithFile PHP Method

testCommandWithFile() public method

public testCommandWithFile ( )
    public function testCommandWithFile()
    {
        $this->assertHasApc();
        $this->assertNoHHVM();
        $file = tempnam(sys_get_temp_dir(), 'cachetool');
        $result = $this->runCommand("apc:bin:dump -f {$file} -v");
        $this->assertContains('apc_bin_dump(null, null)', $result);
        $this->assertGreaterThan(0, strlen(file_get_contents($file)));
        unlink($file);
    }