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