\AKlump\PHPUnit\EasyMockTrait::easyMockSetUp to \AKlump\PHPUnit\EasyMockTrait::setUpEasyMockTestBase has been replaced with EasyMockTrait and EasyMock. This will provide greater flexibility in systems that already extend \PHPUnit_Framework_TestCase.extends EasyMockTestBase you need to use EasyMockTrait.self::FULL_MOCK with EasyMock::FULLself::PARTIAL_MOCK with EasyMock::PARTIALself::VALUE with EasyMock::VALUEIf you were doing this before this update:
use AKlump\PhpUnit\EasyMockTestBase;
class MyTestWithSetUp extends EasyMockTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
// Do whatever else you need to do.
parent::setUp();
}
}
Then you need to update your code to do like this:
use AKlump\PhpUnit\EasyMockTrait;
class MyTestWithSetUp extends \PHPUnit_Framework_TestCase {
use EasyMockTrait;
/**
* {@inheritdoc}
*/
public function setUp() {
$this->easyMockSetUp();
// Do whatever else you need to do.
parent::setUp();
}
}
TestClass::$schema has been replaced with TestClass::getSchema().