How to have 2 composer.json files in 1 project?
<p>I'm working on a project that's a WordPress plugin. This is my directory structure:</p>

<pre><code>├── src/
│   ├── plugin-name.php
│   └── readme.txt
├── tests/
└── ...
</code></pre>

<p>I want to include a composer.json file with the plugin so that users can install with Composer if they wish. For example:</p>

<pre><code>├── src/
│   ├── composer.json
│   ├── plugin-name.php
│   └── readme.txt
├── tests/
└── ...
</code></pre>

<p>But I also want to use the <code>vfsStream</code> component when I'm unit testing the plugin. This will mean I'll need to require <code>vfsStream</code> in a composer.json file that's in my root. For example:</p>

<pre><code>├── src/
│   ├── composer.json
│   ├── plugin-name.php
│   └── readme.txt
├── tests/
├── composer.json
└── ...
</code></pre>

<p>I'm not sure a single project can have 2 composer.json files. Is having 2 composer.json files the right way to go about this? </p>