Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit f891bc1

Browse files
committed
Fixing Windows path factory.
1 parent 26da962 commit f891bc1

File tree

2 files changed

+169
-109
lines changed

2 files changed

+169
-109
lines changed

test/suite/Eloquent/Pathogen/Factory/PathFactoryTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Eloquent\Pathogen\Factory;
1313

1414
use Eloquent\Liberator\Liberator;
15-
use Eloquent\Pathogen\AbsolutePathInterface;
16-
use Eloquent\Pathogen\RelativePathInterface;
15+
use Eloquent\Pathogen\AbsolutePath;
16+
use Eloquent\Pathogen\RelativePath;
1717
use PHPUnit_Framework_TestCase;
1818

1919
class PathFactoryTest extends PHPUnit_Framework_TestCase
@@ -55,8 +55,8 @@ public function testCreate($pathString, array $atoms, $isAbsolute, $hasTrailingS
5555
$path = $this->factory->create($pathString);
5656

5757
$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);
6060
$this->assertSame($hasTrailingSeparator, $path->hasTrailingSeparator());
6161
}
6262

@@ -68,16 +68,16 @@ public function testCreateFromAtoms($pathString, array $atoms, $isAbsolute, $has
6868
$path = $this->factory->createFromAtoms($atoms, $isAbsolute, $hasTrailingSeparator);
6969

7070
$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);
7373
$this->assertSame($hasTrailingSeparator, $path->hasTrailingSeparator());
7474
}
7575

7676
public function testCreateFromAtomsDefaults()
7777
{
7878
$path = $this->factory->createFromAtoms(array());
7979

80-
$this->assertTrue($path instanceof AbsolutePathInterface);
80+
$this->assertTrue($path instanceof AbsolutePath);
8181
$this->assertFalse($path->hasTrailingSeparator());
8282
}
8383

0 commit comments

Comments
 (0)