コード例 #1
0
 public function testStaticRetrieveListWithOverrides()
 {
     $name = 'stdClass';
     $count = 3;
     $overrides = array('name' => 'Mindaugas Bujanauskas');
     $returnValue = array(new $name());
     $coreMock = $this->getMock('Woodling\\Core', array('retrieveList'));
     $coreMock->expects($this->once())->method('retrieveList')->with($this->equalTo($name), $this->equalTo($count), $this->equalTo($overrides))->will($this->returnValue($returnValue));
     Woodling::core($coreMock);
     $list = Woodling::retrieveList($name, $count, $overrides);
     $this->assertEquals($returnValue, $list);
 }