100% of 34OPs |
100% of 5Lines |
100% of 3Branches |
100% of 3Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\fs\path\factory::setDirectorySeparator() | 9 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\fs\path\factory::setAdapter() | 9 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\fs\path\factory::build() | 16 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| # | |
|---|---|
| 1 |
<?php |
| 2 |
|
| 3 |
namespace mageekguy\atoum\fs\path; |
| 4 |
|
| 5 |
use |
| 6 |
mageekguy\atoum, |
| 7 |
mageekguy\atoum\fs\path |
| 8 |
; |
| 9 |
|
| 10 |
class factory |
| 11 |
{
|
| 12 |
protected $adapter = null; |
| 13 |
protected $directorySeparator = null; |
| 14 |
|
| 15 |
public function setDirectorySeparator($directorySeparator = null)100% |
| 16 |
{
|
| 17 |
$this->directorySeparator = $directorySeparator; |
| 18 |
|
| 19 |
return $this; |
| 20 |
} |
| 21 |
|
| 22 |
public function setAdapter(atoum\adapter $adapter = null)100% |
| 23 |
{
|
| 24 |
$this->adapter = $adapter; |
| 25 |
|
| 26 |
return $this; |
| 27 |
} |
| 28 |
|
| 29 |
public function build($path)100% |
| 30 |
{
|
| 31 |
return new path($path, $this->directorySeparator, $this->adapter); |
| 32 |
} |
| 33 |
} |