12
12
namespace Eloquent \Pathogen \Factory ;
13
13
14
14
use Eloquent \Liberator \Liberator ;
15
- use Eloquent \Pathogen \AbsolutePathInterface ;
16
- use Eloquent \Pathogen \RelativePathInterface ;
15
+ use Eloquent \Pathogen \AbsolutePath ;
16
+ use Eloquent \Pathogen \RelativePath ;
17
17
use PHPUnit_Framework_TestCase ;
18
18
19
19
class PathFactoryTest extends PHPUnit_Framework_TestCase
@@ -55,8 +55,8 @@ public function testCreate($pathString, array $atoms, $isAbsolute, $hasTrailingS
55
55
$ path = $ this ->factory ->create ($ pathString );
56
56
57
57
$ this ->assertSame ($ atoms , $ path ->atoms ());
58
- $ this ->assertSame ($ isAbsolute , $ path instanceof AbsolutePathInterface );
59
- $ this ->assertSame ($ isAbsolute , !$ path instanceof RelativePathInterface );
58
+ $ this ->assertSame ($ isAbsolute , $ path instanceof AbsolutePath );
59
+ $ this ->assertSame ($ isAbsolute , !$ path instanceof RelativePath );
60
60
$ this ->assertSame ($ hasTrailingSeparator , $ path ->hasTrailingSeparator ());
61
61
}
62
62
@@ -68,16 +68,16 @@ public function testCreateFromAtoms($pathString, array $atoms, $isAbsolute, $has
68
68
$ path = $ this ->factory ->createFromAtoms ($ atoms , $ isAbsolute , $ hasTrailingSeparator );
69
69
70
70
$ this ->assertSame ($ atoms , $ path ->atoms ());
71
- $ this ->assertSame ($ isAbsolute , $ path instanceof AbsolutePathInterface );
72
- $ this ->assertSame ($ isAbsolute , !$ path instanceof RelativePathInterface );
71
+ $ this ->assertSame ($ isAbsolute , $ path instanceof AbsolutePath );
72
+ $ this ->assertSame ($ isAbsolute , !$ path instanceof RelativePath );
73
73
$ this ->assertSame ($ hasTrailingSeparator , $ path ->hasTrailingSeparator ());
74
74
}
75
75
76
76
public function testCreateFromAtomsDefaults ()
77
77
{
78
78
$ path = $ this ->factory ->createFromAtoms (array ());
79
79
80
- $ this ->assertTrue ($ path instanceof AbsolutePathInterface );
80
+ $ this ->assertTrue ($ path instanceof AbsolutePath );
81
81
$ this ->assertFalse ($ path ->hasTrailingSeparator ());
82
82
}
83
83
0 commit comments