/** * Report a listing of project properties. * * @param PrintStream $out the stream to print the properties to. */ private static function doReportProjectProperties(PrintStream $out) { $project = new Project(); $project->init(); $sysprops = $project->getProperties(); foreach ($sysprops as $key => $value) { $out->println($key . " : " . $value); } }
/** * Tests if the property set in unlessCondition exists. * * @return boolean <code>true</code> if the property specified * in <code>$this->unlessCondition</code> exists; * <code>false</code> otherwise */ private function testUnlessCondition() { if ($this->unlessCondition === "") { return true; } $properties = explode(",", $this->unlessCondition); $result = true; foreach ($properties as $property) { $test = ProjectConfigurator::replaceProperties($this->getProject(), $property, $this->project->getProperties()); $result = $result && $this->project->getProperty($test) === null; } return $result; }
/** * * @test */ public function aPropertyTaskShouldBeUsedToLoadGeneratedLocalConfigurationProperties() { $properties = $this->project->getProperties(); $this->assertNotEmpty($properties); }