Changeset 155
- Timestamp:
- 01/25/07 21:53:23 (2 years ago)
- Files:
-
- trunk/src/main/php/net/stubbles/reflection/stubAnnotationFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/xml/serializer/stubXMLSerializer.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/xml/stubLibXmlXMLStreamWriter.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/events/stubEventDispatcherTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/ipo/session/stubPHPSessionTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/reflection/stubReflectionFunctionTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/stubAnnotationFactory.php
r97 r155 179 179 public static function has($comment, $annotationName, $target, $targetName) 180 180 { 181 $annotation = null; 181 182 try { 182 183 $annotation = self::create($comment, $annotationName, $target, $targetName); 183 184 } catch (ReflectionException $e) { 184 185 } 185 return ($annotation != null); 186 187 return (null != $annotation); 186 188 } 187 189 } trunk/src/main/php/net/stubbles/xml/serializer/stubXMLSerializer.php
r135 r155 50 50 $this->opts = array_merge($this->defaultOpts, $opts); 51 51 52 $this->serializeDispatcher($data, $xmlWriter, $this->opts[self::OPT_ROOT_TAG]);52 $this->serializeDispatcher($data, $xmlWriter, ((isset($this->opts[self::OPT_ROOT_TAG]) == true) ? ($this->opts[self::OPT_ROOT_TAG]) : (null))); 53 53 } 54 54 trunk/src/main/php/net/stubbles/xml/stubLibXmlXMLStreamWriter.php
r129 r155 34 34 $this->writer = new XMLWriter(); 35 35 $this->writer->openMemory(); 36 $this->writer->startDocument($ version, $encoding);36 $this->writer->startDocument($xmlVersion, $encoding); 37 37 $this->writer->setIndent(false); 38 38 } trunk/src/test/php/net/stubbles/events/stubEventDispatcherTestCase.php
r98 r155 259 259 $this->eventDispatcher->register($testlistener, 'onCanceledQueuedEvent'); 260 260 $this->assertNull($testlistener->getEvent()); 261 $this->assertEqual( stubEventDispatcher::countQueuedEvents(), 0);261 $this->assertEqual($this->eventDispatcher->countQueuedEvents(), 0); 262 262 } 263 263 trunk/src/test/php/net/stubbles/ipo/session/stubPHPSessionTestCase.php
r154 r155 56 56 $line; 57 57 if (headers_sent($file, $line) == true) { 58 echo 'Headers already send in ' . $file . ' on line ' . $line ;58 echo 'Headers already send in ' . $file . ' on line ' . $line . ', skipped stubPHPSessionTestCase::testRegenerateId()'; 59 59 return; 60 60 } trunk/src/test/php/net/stubbles/reflection/stubReflectionFunctionTestCase.php
r98 r155 50 50 $this->assertTrue($this->stubRefFunction1->equals($stubRefFunction)); 51 51 $this->assertTrue($stubRefFunction->equals($this->stubRefFunction1)); 52 $this->assertFalse($this->stubRefFunction1->equals($this->stubRef Class2));52 $this->assertFalse($this->stubRefFunction1->equals($this->stubRefFunction2)); 53 53 $this->assertFalse($this->stubRefFunction1->equals('foo')); 54 54 $this->assertFalse($this->stubRefFunction2->equals($this->stubRefFunction1)); 55 $this->assertFalse($this->stubRefFunction2->equals($stubRef Class1));55 $this->assertFalse($this->stubRefFunction2->equals($stubRefFunction)); 56 56 } 57 57
