Пример #1
0
 /**
  * Set the source for the file.
  * @param  mixed $source
  * @return static
  */
 public function fromSource($source)
 {
     $this->source = $this->factory->create($source);
     return $this;
 }
 public function test_it_returns_adapters_unmodified()
 {
     $factory = new SourceAdapterFactory();
     $adapter = $this->createMock(SourceAdapterInterface::class);
     $this->assertEquals($adapter, $factory->create($adapter));
 }