You are here

public function FileFormFieldTest::testSetRawFilePath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/Field/FileFormFieldTest.php \Symfony\Component\DomCrawler\Tests\Field\FileFormFieldTest::testSetRawFilePath()

File

vendor/symfony/dom-crawler/Tests/Field/FileFormFieldTest.php, line 106

Class

FileFormFieldTest

Namespace

Symfony\Component\DomCrawler\Tests\Field

Code

public function testSetRawFilePath() {
  $node = $this
    ->createNode('input', '', array(
    'type' => 'file',
  ));
  $field = new FileFormField($node);
  $field
    ->setFilePath(__FILE__);
  $this
    ->assertEquals(__FILE__, $field
    ->getValue());
}