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); }
protected function tearDown() { $cleanup = new Cleaner(); $cleanup->nullProperties($this); parent::tearDown(); }