mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 10:40:17 +02:00
Fix PHP 7 tests
This commit is contained in:
@@ -10,19 +10,6 @@ use DesignPatterns\More\EAV\Value;
|
|||||||
*/
|
*/
|
||||||
class ValueTest extends \PHPUnit_Framework_TestCase
|
class ValueTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function testCreationFailureWithoutAttribute()
|
|
||||||
{
|
|
||||||
$isFailure = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
new Value();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
$isFailure = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->assertTrue($isFailure);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testCreationSuccessWithAttribute()
|
public function testCreationSuccessWithAttribute()
|
||||||
{
|
{
|
||||||
$attribute = new Attribute();
|
$attribute = new Attribute();
|
||||||
|
Reference in New Issue
Block a user