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()); }
/** * Is this an internal class? * * @return bool */ public function isInternal() { return $this->locatedSource->isInternal(); }