/** * @covers ::getFilePath * @covers ::setFilePath */ public function testFilePath() { $defaultFilePath = $this->options->getFilePath(); $this->assertNotEmpty($defaultFilePath); $this->assertInternalType('string', $defaultFilePath); $value = '/somePath'; $this->assertSame($this->options, $this->options->setFilePath($value)); $this->assertEquals($value, $this->options->getFilePath()); }
/** * @see \PHPUnit_Framework_TestCase::setUp() */ protected function setUp() { $this->options = new Options(); $this->manager = new Manager($this->options); $root = 'root'; vfsStreamWrapper::register(); vfsStreamWrapper::setRoot(new vfsStreamDirectory($root)); $this->options->setFilePath(vfsStream::url($root)); }