/** * @param Collection $collection * @depends testAdd */ public function testAddIsStrict(Collection $collection) { $expected = $collection->toArray(); array_push($expected, 10, (string) 10); $collection->add(10, true)->add(10, true)->add((string) 10, true); $this->assertSame($expected, $collection->toArray()); }