Pheasant\Tests\TableTest::testReplacingWithoutPkeyInserts PHP Method

testReplacingWithoutPkeyInserts() public method

    public function testReplacingWithoutPkeyInserts()
    {
        $this->table->insert(array('firstname' => 'Llama', 'lastname' => 'Herder'));
        $this->table->replace(array('firstname' => 'Alpaca', 'lastname' => 'Collector'));
        $this->assertRowCount(2, 'select * from user');
        $this->assertEquals(iterator_to_array($this->connection()->execute("select firstname from user")->column()), array('Llama', 'Alpaca'));
    }