diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-29 09:24:08 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-29 09:24:08 +0200 |
commit | 70e305a918fcf193009831d4e89aa8c386df3dc4 (patch) | |
tree | 8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Data/SqlMap/PropertyAccessTest.php | |
parent | 55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff) |
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/PropertyAccessTest.php')
-rw-r--r-- | tests/unit/Data/SqlMap/PropertyAccessTest.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unit/Data/SqlMap/PropertyAccessTest.php b/tests/unit/Data/SqlMap/PropertyAccessTest.php index eb8306d5..ba9e24c7 100644 --- a/tests/unit/Data/SqlMap/PropertyAccessTest.php +++ b/tests/unit/Data/SqlMap/PropertyAccessTest.php @@ -24,9 +24,9 @@ class PropertyAccessTest extends BaseCase $account6 = $this->NewAccount6(); $two->More = $account6; - $this->assertIdentical(10, TPropertyAccess::get($account, 'Id')); - $this->assertIdentical(12, TPropertyAccess::get($account, 'More.Id')); - $this->assertIdentical(6, TPropertyAccess::get($account, 'More.More.Id')); + $this->assertSame(10, TPropertyAccess::get($account, 'Id')); + $this->assertSame(12, TPropertyAccess::get($account, 'More.Id')); + $this->assertSame(6, TPropertyAccess::get($account, 'More.More.Id')); } function testSetPublicProperty() @@ -48,11 +48,11 @@ class PropertyAccessTest extends BaseCase TPropertyAccess::set($account, 'More.More.EmailAddress', 'hahaha'); - $this->assertIdentical(10, TPropertyAccess::get($account, 'Id')); - $this->assertIdentical(12, TPropertyAccess::get($account, 'More.Id')); - $this->assertIdentical(6, TPropertyAccess::get($account, 'More.More.Id')); + $this->assertSame(10, TPropertyAccess::get($account, 'Id')); + $this->assertSame(12, TPropertyAccess::get($account, 'More.Id')); + $this->assertSame(6, TPropertyAccess::get($account, 'More.More.Id')); - $this->assertIdentical('hahaha', + $this->assertSame('hahaha', TPropertyAccess::get($account, 'More.More.EmailAddress')); } @@ -63,12 +63,12 @@ class PropertyAccessTest extends BaseCase $things['accounts'] = $this->NewAccount6(); $account->More = $things; - $this->assertIdentical(6, TPropertyAccess::get($account, 'More.accounts.ID')); + $this->assertSame(6, TPropertyAccess::get($account, 'More.accounts.ID')); TPropertyAccess::set($account, 'More.accounts.EmailAddress', 'adssd'); - $this->assertIdentical('adssd', TPropertyAccess::get($account, 'More.accounts.EmailAddress')); + $this->assertSame('adssd', TPropertyAccess::get($account, 'More.accounts.EmailAddress')); - $this->assertIdentical(1, TPropertyAccess::get($things, 'more')); + $this->assertSame(1, TPropertyAccess::get($things, 'more')); } } |