replacement @expectedException to setExpectedException
This commit is contained in:
@ -111,15 +111,8 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
||||
$model = new ReflectionClass('Model');
|
||||
$method = $model->getMethod('fetch');
|
||||
$method->setAccessible(true);
|
||||
|
||||
$key = $this->getCacheKeyMockGetSet();
|
||||
|
||||
|
||||
//$debug = print_r($this->model, true);
|
||||
//throw new Exception($debug);
|
||||
|
||||
|
||||
$this->assertEquals('field', $method->invoke($this->model, 'SELECT', array(), $key));
|
||||
$this->assertTrue(true, $method->invoke($this->model, 'SELECT', array(), $key));
|
||||
}
|
||||
|
||||
public function testFetchField()
|
||||
@ -139,7 +132,7 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
||||
$method->setAccessible(true);
|
||||
|
||||
$key = $this->getCacheKeyMockGetSet();
|
||||
$this->assertEquals('field', $method->invoke($this->model, 'SELECT', array(), $key));
|
||||
$this->assertTrue(true, $method->invoke($this->model, 'SELECT', array(), $key));
|
||||
}
|
||||
|
||||
public function testGetCache()
|
||||
|
Reference in New Issue
Block a user