From 0d3c017d20c9bee3757b26ba6a45e769a5e0862d Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Thu, 30 Aug 2018 16:18:42 -0600 Subject: [PATCH] shift and unshift were reversed --- tests/FlatArrayPushPopTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/FlatArrayPushPopTest.php b/tests/FlatArrayPushPopTest.php index 0d9ba08..5acdaf2 100644 --- a/tests/FlatArrayPushPopTest.php +++ b/tests/FlatArrayPushPopTest.php @@ -22,12 +22,12 @@ class FlatArrayPushPopTest extends TestCase public function testShiftUnshift() { $f = new FlatArray(); - $f->shift(null, 'foo'); - $f->shift(null, 'bar'); + $f->unshift(null, 'foo'); + $f->unshift(null, 'bar'); $this->assertEquals(['bar','foo'], $f->get()); - $this->assertEquals('bar', $f->unshift(null)); + $this->assertEquals('bar', $f->shift(null)); $this->assertEquals(['foo'], $f->get()); - $this->assertEquals('foo', $f->unshift(null)); + $this->assertEquals('foo', $f->shift(null)); $this->assertEquals([], $f->get()); } }