/**
  * Cleanup.
  */
 protected function tearDown()
 {
     RC::removeStatic(self::SIMPLE_CLASS_NAME);
     RC::removeNewInstance(self::SIMPLE_CLASS_NAME);
 }
Example #2
0
 /**
  * Test default behavior of synthetic class.
  */
 public function testDefaultClassBehavior()
 {
     $class = new SimpleClass();
     $this->assertSame(self::SIMPLE_CLASS_NAME . '::method', $class->method());
     $this->assertSame(self::SIMPLE_CLASS_NAME . '::staticMethod', $class->staticMethod());
     $this->assertFalse(RC::hasObject($class, 'method'));
     $this->assertFalse(RC::hasStatic(self::SIMPLE_CLASS_NAME, 'staticMethod'));
 }