コード例 #1
0
 public function testPopulateWithPropertyNotAvailableSilentlyContinues()
 {
     $property = new Property();
     $property->populate(['nothing-here' => 'no value']);
     $this->addToAssertionCount(1);
     // no error here
 }
コード例 #2
0
 public function testAlwaysRequireAuthentication()
 {
     $property = new Property();
     $this->assertNull($property->isAlwaysRequireAuthentication());
     $this->assertInstanceOf('iMoneza\\Data\\Property', $property->setAlwaysRequireAuthentication(true));
     $this->assertTrue($property->isAlwaysRequireAuthentication());
 }