Exemplo n.º 1
0
 /**
  * @test
  */
 public function findByUidAcceptsNumericUidInString()
 {
     $this->createDatabaseMock();
     $this->mockedDb->expects($this->once())->method('exec_SELECTgetSingleRow')->with($this->anything(), $this->anything(), $this->stringContains('uid=' . 123))->will($this->returnValue(array('uid' => 123)));
     $this->subject->findByUid('123');
 }