Skip to content

Commit

Permalink
Merge branch '2.4'
Browse files Browse the repository at this point in the history
* 2.4:
  [Form][2.3] Fixes empty file-inputs getting treated as extra field.
  changed some PHPUnit assertions to more specific ones
  fixed Kernel::stripComments() normalizing new-lines
  added a BC comment
  Update FileLoader to fix issue #10339
  bumped Symfony version to 2.3.12
  updated VERSION for 2.3.11
  update CONTRIBUTORS for 2.3.11
  updated CHANGELOG for 2.3.11
  Throw exception when unable to normalize embedded object
  Fixed evaluation of short circuit operators
  Follow-up to #10312: Fixed minor performance related issues in Yaml\Inline.
  [2.4][HttpKernel] Fix issue #10209 When the profiler has `only_exception` option activated and a subrequest throw an exception, the parent profile cannot be found.
  • Loading branch information
fabpot committed Mar 3, 2014
2 parents a708807 + ab301c7 commit d45faef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/FinderTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ public function testMultipleLocations(Adapter\AdapterInterface $adapter)
$finder = $this->buildFinder($adapter); $finder = $this->buildFinder($adapter);
$finder->in($locations)->depth('< 1')->name('test.php'); $finder->in($locations)->depth('< 1')->name('test.php');


$this->assertEquals(1, count($finder)); $this->assertCount(1, $finder);
} }


/** /**
Expand Down Expand Up @@ -746,7 +746,7 @@ public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
$this->assertIterator($this->toAbsolute(array('foo bar', 'test.php', 'test.py')), $finder->getIterator()); $this->assertIterator($this->toAbsolute(array('foo bar', 'test.php', 'test.py')), $finder->getIterator());
$this->fail('Finder should throw an exception when opening a non-readable directory.'); $this->fail('Finder should throw an exception when opening a non-readable directory.');
} catch (\Exception $e) { } catch (\Exception $e) {
$this->assertEquals('Symfony\\Component\\Finder\\Exception\\AccessDeniedException', get_class($e)); $this->assertInstanceOf('Symfony\\Component\\Finder\\Exception\\AccessDeniedException', $e);
} }


// restore original permissions // restore original permissions
Expand Down

0 comments on commit d45faef

Please sign in to comment.