public function testResolveName() { $mockedFileInfo = $this->createMockedFileInfo(); $mockedStrategy = $this->createMockedStrategy(); $mockedStrategy->expects($this->once())->method('provideName')->with($mockedFileInfo)->willReturn(__FILE__); $resolver = new FileNamingResolver($mockedStrategy); $pathname = $resolver->resolveName($mockedFileInfo); $this->assertInternalType('string', $pathname); }