         editor = null
 
         waitsForPromise ->
-            atom.project.open('sample/sample-use.php').then (o) -> editor = o
+            atom.workspace.open(__dirname + '/sample/sample-use.php').then (o) -> editor = o
 
         runs ->
 

        editor = null

        waitsForPromise ->
            atom.project.open('sample/sample-multiple.php').then (o) -> editor = o

        runs ->
            expect(provider.getLocalAvailableCompletions(editor)).toEqual(expectedCompletions)

        promise = null

        waitsForPromise ->
            atom.workspace.open(__dirname + '/sample/sample.php').then (o) -> editor = o

        waitsForPromise ->

