/**
  * @test
  */
 public function countCallsCountOnTheQueryOnlyOnce()
 {
     $this->query->expects($this->once())->method('count')->will($this->returnValue(321));
     $this->queryResult->count();
     $this->assertEquals(321, $this->queryResult->count());
 }
Пример #2
0
 /**
  * @test
  */
 public function offsetGetReturnsNullIfOffsetDoesNotExist()
 {
     $this->assertNull($this->queryResult->offsetGet('foo'));
 }