\AKlump\PHPUnit\EasyMockTrait::easyMockSetUp
to \AKlump\PHPUnit\EasyMockTrait::setUp
EasyMockTestBase
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::FULL
self::PARTIAL_MOCK
with EasyMock::PARTIAL
self::VALUE
with EasyMock::VALUE
If 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()
.