public function testValuesWithNullFilename()
 {
     $source = '<?php echo "Hello world";';
     $file = null;
     $locatedSource = new LocatedSource($source, $file);
     $this->assertSame($source, $locatedSource->getSource());
     $this->assertNull($locatedSource->getFileName());
     $this->assertFalse($locatedSource->isEvaled());
     $this->assertFalse($locatedSource->isInternal());
 }
예제 #2
0
 /**
  * Is this an internal class?
  *
  * @return bool
  */
 public function isInternal()
 {
     return $this->locatedSource->isInternal();
 }