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