public function testSameValueAs() { $array = \SplFixedArray::fromArray(array(new StringLiteral('one'), new StringLiteral('two'), new Integer(3))); $collection2 = new Collection($array); $array = \SplFixedArray::fromArray(array('one', 'two', array(1, 2))); $collection3 = Collection::fromNative($array); $this->assertTrue($this->collection->sameValueAs($collection2)); $this->assertTrue($collection2->sameValueAs($this->collection)); $this->assertFalse($this->collection->sameValueAs($collection3)); $mock = $this->getMock('ValueObjects\\ValueObjectInterface'); $this->assertFalse($this->collection->sameValueAs($mock)); }