Ouzo\Tests\Mock\Mock::anyArgList PHP Method

anyArgList() public static method

public static anyArgList ( )
    public static function anyArgList()
    {
        return new AnyArgumentList();
    }

Usage Example

コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->pdoMock = Mock::mock();
     $this->dbMock = Mock::mock();
     Mock::when($this->pdoMock)->query(Mock::anyArgList())->thenReturn(false);
     Mock::when($this->dbMock)->errorInfo()->thenReturn(array(1, 3, 'Preparation error'));
 }
All Usage Examples Of Ouzo\Tests\Mock\Mock::anyArgList