/** * @covers ::getUriPath * @covers ::setUriPath */ public function testUriPath() { $defaultUriPath = $this->options->getUriPath(); $this->assertNotEmpty($defaultUriPath); $this->assertInternalType('string', $defaultUriPath); $value = '/someUri'; $this->assertSame($this->options, $this->options->setUriPath($value)); $this->assertEquals($value, $this->options->getUriPath()); }
/** * @param string $uri * @param string|null $expected * @covers ::matchUri * @dataProvider dataMatchUri */ public function testMatchUri($uri, $expected) { $this->assertSame($expected, $this->manager->matchUri($this->options->getUriPath() . $uri)); }
/** * @param OrganizationImage $image * @return string */ protected function getImagePath(OrganizationImage $image) { return sprintf('%s/%s', $this->options->getFilePath(), $this->getImageSubPath($image)); }