Skip to content

Commit 10d8030

Browse files
committed
Workaround for puli/issues#190
1 parent 3de7173 commit 10d8030

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit colors="true" bootstrap="vendor/autoload.php">
2+
<phpunit colors="true" bootstrap="tests/bootstrap.php">
33
<testsuites>
44
<testsuite name="Curl Client Test Suite">
55
<directory>tests/</directory>

tests/bootstrap.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
$loader = require __DIR__ . '/../vendor/autoload.php';
4+
5+
// Temporary fix for Puli
6+
$loader->addClassMap(
7+
[
8+
'Puli\\GeneratedPuliFactory' => __DIR__ . '/../.puli/GeneratedPuliFactory.php'
9+
]
10+
);

0 commit comments

Comments
 (0)