Simple Fixes
This commit is contained in:
parent
94ba6e2dfc
commit
cd4bc93483
@ -593,31 +593,31 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
// class _DDC1590User extends DDC1590Entity { ... }
|
// class _DDC1590User extends DDC1590Entity { ... }
|
||||||
$rc2 = new \ReflectionClass($ns.'\_DDC1590User');
|
$rc2 = new \ReflectionClass($ns.'\_DDC1590User');
|
||||||
|
|
||||||
$this->assertSame($rc2->hasProperty('name'), true);
|
$this->assertTrue($rc2->hasProperty('name'));
|
||||||
$this->assertSame($rc2->hasProperty('id'), true);
|
$this->assertTrue($rc2->hasProperty('id'));
|
||||||
$this->assertSame($rc2->hasProperty('created_at'), true);
|
$this->assertTrue($rc2->hasProperty('created_at'));
|
||||||
|
|
||||||
$this->assertSame($rc2->hasMethod('getName'), true);
|
$this->assertTrue($rc2->hasMethod('getName'));
|
||||||
$this->assertSame($rc2->hasMethod('setName'), true);
|
$this->assertTrue($rc2->hasMethod('setName'));
|
||||||
$this->assertSame($rc2->hasMethod('getId'), true);
|
$this->assertTrue($rc2->hasMethod('getId'));
|
||||||
$this->assertSame($rc2->hasMethod('setId'), false);
|
$this->assertFalse($rc2->hasMethod('setId'));
|
||||||
$this->assertSame($rc2->hasMethod('getCreatedAt'), true);
|
$this->assertTrue($rc2->hasMethod('getCreatedAt'));
|
||||||
$this->assertSame($rc2->hasMethod('setCreatedAt'), true);
|
$this->assertTrue($rc2->hasMethod('setCreatedAt'));
|
||||||
|
|
||||||
|
|
||||||
// class __DDC1590User { ... }
|
// class __DDC1590User { ... }
|
||||||
$rc3 = new \ReflectionClass($ns.'\__DDC1590User');
|
$rc3 = new \ReflectionClass($ns.'\__DDC1590User');
|
||||||
|
|
||||||
$this->assertSame($rc3->hasProperty('name'), true);
|
$this->assertTrue($rc3->hasProperty('name'));
|
||||||
$this->assertSame($rc3->hasProperty('id'), false);
|
$this->assertFalse($rc3->hasProperty('id'));
|
||||||
$this->assertSame($rc3->hasProperty('created_at'), false);
|
$this->assertFalse($rc3->hasProperty('created_at'));
|
||||||
|
|
||||||
$this->assertSame($rc3->hasMethod('getName'), true);
|
$this->assertTrue($rc3->hasMethod('getName'));
|
||||||
$this->assertSame($rc3->hasMethod('setName'), true);
|
$this->assertTrue($rc3->hasMethod('setName'));
|
||||||
$this->assertSame($rc3->hasMethod('getId'), false);
|
$this->assertFalse($rc3->hasMethod('getId'));
|
||||||
$this->assertSame($rc3->hasMethod('setId'), false);
|
$this->assertFalse($rc3->hasMethod('setId'));
|
||||||
$this->assertSame($rc3->hasMethod('getCreatedAt'), false);
|
$this->assertFalse($rc3->hasMethod('getCreatedAt'));
|
||||||
$this->assertSame($rc3->hasMethod('setCreatedAt'), false);
|
$this->assertFalse($rc3->hasMethod('setCreatedAt'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user