From 46b77928f746a4231d064774b5b67fd892c7ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 17:50:34 +0200 Subject: rm vendor --- .../Tests/ResourceBundle/Util/RingBufferTest.php | 101 --------------------- 1 file changed, 101 deletions(-) delete mode 100644 vendor/symfony/intl/Symfony/Component/Intl/Tests/ResourceBundle/Util/RingBufferTest.php (limited to 'vendor/symfony/intl/Symfony/Component/Intl/Tests/ResourceBundle/Util/RingBufferTest.php') diff --git a/vendor/symfony/intl/Symfony/Component/Intl/Tests/ResourceBundle/Util/RingBufferTest.php b/vendor/symfony/intl/Symfony/Component/Intl/Tests/ResourceBundle/Util/RingBufferTest.php deleted file mode 100644 index d6f7d8a0..00000000 --- a/vendor/symfony/intl/Symfony/Component/Intl/Tests/ResourceBundle/Util/RingBufferTest.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Intl\Tests\ResourceBundle\Util; - -use Symfony\Component\Intl\ResourceBundle\Util\RingBuffer; - -/** - * @author Bernhard Schussek - */ -class RingBufferTest extends \PHPUnit_Framework_TestCase -{ - /** - * @var RingBuffer - */ - private $buffer; - - protected function setUp() - { - $this->buffer = new RingBuffer(2); - } - - public function testWriteWithinBuffer() - { - $this->buffer[0] = 'foo'; - $this->buffer['bar'] = 'baz'; - - $this->assertTrue(isset($this->buffer[0])); - $this->assertTrue(isset($this->buffer['bar'])); - $this->assertSame('foo', $this->buffer[0]); - $this->assertSame('baz', $this->buffer['bar']); - } - - public function testWritePastBuffer() - { - $this->buffer[0] = 'foo'; - $this->buffer['bar'] = 'baz'; - $this->buffer[2] = 'bam'; - - $this->assertTrue(isset($this->buffer['bar'])); - $this->assertTrue(isset($this->buffer[2])); - $this->assertSame('baz', $this->buffer['bar']); - $this->assertSame('bam', $this->buffer[2]); - } - - /** - * @expectedException \Symfony\Component\Intl\Exception\OutOfBoundsException - */ - public function testReadNonExistingFails() - { - $this->buffer['foo']; - } - - public function testQueryNonExisting() - { - $this->assertFalse(isset($this->buffer['foo'])); - } - - public function testUnsetNonExistingSucceeds() - { - unset($this->buffer['foo']); - - $this->assertFalse(isset($this->buffer['foo'])); - } - - /** - * @expectedException \Symfony\Component\Intl\Exception\OutOfBoundsException - */ - public function testReadOverwrittenFails() - { - $this->buffer[0] = 'foo'; - $this->buffer['bar'] = 'baz'; - $this->buffer[2] = 'bam'; - - $this->buffer[0]; - } - - public function testQueryOverwritten() - { - $this->assertFalse(isset($this->buffer[0])); - } - - public function testUnsetOverwrittenSucceeds() - { - $this->buffer[0] = 'foo'; - $this->buffer['bar'] = 'baz'; - $this->buffer[2] = 'bam'; - - unset($this->buffer[0]); - - $this->assertFalse(isset($this->buffer[0])); - } -} -- cgit v1.2.3