Exemplo n.º 1
0
 public function testNullProperties()
 {
     $object = new SillyObject();
     $cleaner = new Cleaner();
     $cleaner->nullProperties($object);
     $this->assertNull($object->publicProp);
     $this->assertNull($object->getProtectedProp());
     $this->assertEquals('static', $object::$staticProp);
     $this->assertEquals('whitelisted', $object->whitelisted);
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     $cleanup = new Cleaner();
     $cleanup->nullProperties($this);
     parent::tearDown();
 }