public function testCantGetPhpDefaultValue() { $value = $this->getColumnDefaultValueMock(); $value->expects($this->once())->method('isExpression')->will($this->returnValue(true)); $domain = new Domain(); $domain->setDefaultValue($value); $this->setExpectedException('Propel\\Generator\\Exception\\EngineException'); $domain->getPhpDefaultValue(); }
/** * Returns the default value suitable for use in PHP. * * @return mixed * @see Domain::getPhpDefaultValue() */ public function getPhpDefaultValue() { return $this->domain->getPhpDefaultValue(); }