* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Filesystem\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Exception\FileNotFoundException; /** * Test class for Filesystem. */ class ExceptionTest extends TestCase { public function testGetPath() { $e = new IOException('', 0, null, '/foo'); $this->assertEquals('/foo', $e->getPath(), 'The pass should be returned.'); } public function testGeneratedMessage() { $e = new FileNotFoundException(null, 0, null, '/foo'); $this->assertEquals('/foo', $e->getPath()); $this->assertEquals('File "/foo" could not be found.', $e->getMessage(), 'A message should be generated.'); } public function testGeneratedMessageWithoutPath() { $e = new FileNotFoundException(); $this->assertEquals('File could not be found.', $e->getMessage(), 'A message should be generated.'); } public function testCustomMessage() { $e = new FileNotFoundException('bar', 0, null, '/foo'); $this->assertEquals('bar', $e->getMessage(), 'A custom message should be possible still.'); } } __halt_compiler();----SIGNATURE:----F/5l7//jqepqdjROX7AocH5kPyPRmdSDzSlObON6XTbSzqYBVG36/D/B1r/V9Tw63CXHWWyqGv7PIv6PJimOoYMwl+W92oiJ9J2FRsAriNRWwhuzQ9D6oqm4k1ip2W6hVvTayGgR1qwOcHqJv1UZxwD8ePhlOuoK0CxEoSywCYh4MyOXLqMzlsUok2wJfeFvr3rHpcn5M1BuvSadg36GKw0BTjocn2TZguPY4CALECY7AG5Vf347GnkiW7F9hspdmHF1dX7HKrmwzCYU7Aso1l+6nfBUbwjcBz/w8zzNI0Z1ibupi5+/ivUu2zUAMoJxgXh+hFH8nbc9TSO3mgdwwHUe+fCVA3hHBppwSchwf7stdmA6XTMoGl4M0nsbZr1Wm0Ti7gA6Ei27Gy4R6rvq+8WyPN1vEC2+iT9mzI6HX10aemPgrfo65VEbB8SDj2Vzr04hBYyZClyC2lTy5CEhEnipw8ozyfkRmOqGwj27lyydS8kViob7O+fLr0lYfQbc7O9nirkAxffoVkEggEsCC55PUlRxyqalI7zQugX9nj62rMJrLMorhcynFqulvAhkAbxXqQ59Qp7Fesm/IhMSpen5tqgiUYKc3yZzxJxW6Q3Wyq7ffl1s+vJj4vqRqdvVT+6aVM5fl4Wtqp/JT0zoe9Y+S4knOIK9ECnwBDHZBj0=----ATTACHMENT:----MTA1MzA2NjM5ODk2NzY0IDY3NjA4MzAzODA1NjM0MiA3OTI4MzkyOTc2Mjc3Mzgy