예제 #1
0
 /**
  * @covers mychaelstyle\queue\providers\AmazonSQS::connect
  * @covers mychaelstyle\queue\providers\AmazonSQS::poll
  * @covers mychaelstyle\queue\providers\AmazonSQS::offer
  * @covers mychaelstyle\queue\providers\AmazonSQS::peek
  * @covers mychaelstyle\queue\providers\AmazonSQS::remove
  */
 public function testOfferMap()
 {
     $expected = array('first_name' => 'Taro', 'last_name' => 'Suzuki');
     $this->object->offer($expected);
     $result = (array) $this->object->poll();
     $this->assertEquals($expected, $result);
     $result = $this->object->poll();
     $this->assertNull($result);
 }