/**
  * @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());
 }
示例#2
0
 /**
  * @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));
 }
示例#3
0
 /**
  * @param OrganizationImage $image
  * @return string
  */
 protected function getImagePath(OrganizationImage $image)
 {
     return sprintf('%s/%s', $this->options->getFilePath(), $this->getImageSubPath($image));
 }