public function testSetPhpBinToNull() { $reflectionClass = new \ReflectionClass('BsbPhingService\\Options\\ServiceOptions'); $options = new ServiceOptions(); $reflectionProperty = $reflectionClass->getProperty('phpBin'); $reflectionProperty->setAccessible(true); $options->setPhpBin(); $this->assertNull($reflectionProperty->getValue($options)); $options->setPhpBin(null); $this->assertNull($reflectionProperty->getValue($options)); }