• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ocramius / GeneratedHydrator / 115
30%

Build:
DEFAULT BRANCH: master
Ran 07 Jul 2015 06:59AM UTC
Jobs 3
Files 7
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
115

Pull #37

travis-ci

Matthias Noback
Allow generated classes target dir to be null

Because of the string casting, in my code I have to call `setGeneratedClassesTargetDir()` like this:

```php
class HydrateUsingGeneratedHydrator implements Hydrate
{
    /**
     * @var string|null
     */
    private $cacheDir;

    public function __construct($cacheDir)
    {
        $this->cacheDir = $cacheDir;
    }

    public function hydrate(array $data, $object)
    {
        $configuration = new Configuration(get_class($object));

        if ($this->cacheDir !== null) {
            $configuration->setGeneratedClassesTargetDir($this->cacheDir);
        }
        ...
}
```

The proposed change allows me to just call `$configuration->setGeneratedClassesTargetDir($this->cacheDir);` without the extra `if` clause.
Pull Request #37:

2 of 2 new or added lines in 1 file covered. (100.0%)

170 of 175 relevant lines covered (97.14%)

5.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 115.1 07 Jul 2015 06:59AM UTC 0
97.14
Travis Job 115.1
2 115.2 07 Jul 2015 06:58AM UTC 0
97.14
Travis Job 115.2
3 115.3 07 Jul 2015 06:57AM UTC 0
97.14
Travis Job 115.3
Source Files on build 115
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #115
  • Pull Request #37
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc