Skip to content

Commit

Permalink
Merge branch '2.3' into 2.4
Browse files Browse the repository at this point in the history
* 2.3:
  changed some PHPUnit assertions to more specific ones
  fixed Kernel::stripComments() normalizing new-lines
  added a BC comment
  Update FileLoader to fix issue #10339
  • Loading branch information
fabpot committed Mar 1, 2014
2 parents d712f4a + 09ca26e commit ab301c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public function testMultipleLocations(Adapter\AdapterInterface $adapter)
$finder = $this->buildFinder($adapter);
$finder->in($locations)->depth('< 1')->name('test.php');

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

/**
Expand Down Expand Up @@ -735,7 +735,7 @@ public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
$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.');
} catch (\Exception $e) {
$this->assertEquals('Symfony\\Component\\Finder\\Exception\\AccessDeniedException', get_class($e));
$this->assertInstanceOf('Symfony\\Component\\Finder\\Exception\\AccessDeniedException', $e);
}

// restore original permissions
Expand Down

0 comments on commit ab301c7

Please sign in to comment.