Ejemplo n.º 1
0
 /**
  * @test
  */
 public function getUrlReturnsInitialValueForString()
 {
     $html = file_get_contents(__DIR__ . '/input.html');
     $expected = file_get_contents(__DIR__ . '/builtin.txt');
     $actual = $this->subject->getPlainText($html, 'http://my-domain.com');
     $this->assertSame($expected, $actual);
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function getUrlReturnsInitialValueForString()
 {
     if (!$this->canRunLynx()) {
         $this->markTestSkipped('The command "' . Tools::confParam('path_to_lynx') . '" is not available.');
     }
     $html = file_get_contents(__DIR__ . '/input.html');
     $expected = file_get_contents(__DIR__ . '/lynx.txt');
     $actual = $this->subject->getPlainText($html, 'http://my-domain.com');
     $this->assertSame($expected, $actual);
 }