public function testShouldWriteContentToFileWhenNotExists() { $content = sha1(microtime()); $path = TESTS_ROOT_DIR . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'test.tmp'; $this->assertGreaterThan(0, FileWriter::write($path, $content, true)); unlink($path); }